Re: [RFC PATCH] net_sched: sch_sfq: better struct layouts

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jarek Poplawski
Date: Sunday, December 19, 2010 - 2:22 pm

On Fri, Dec 17, 2010 at 05:52:46PM +0100, Eric Dumazet wrote:
...

I think open coding sk_buff_head is a wrong idea. Otherwise, this
patch looks OK to me, only a few cosmetic suggestions below.


SFQ_EMPTY_SLOT?


struct sfq_head dep?


depth and/or length? (One dimension should be enough.)


static inline struct sfq_head *sfq_dep_head()?

...

No reason to remove this line.


If you really have to do this, all these: __skb_queue_tail(),
__skb_dequeue(), skb_queue_head_init(), skb_peek() etc. used here
should stay as (local) inline functions to remain readability.

Jarek P.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] net_sched: sch_sfq: fix allot handling, Eric Dumazet, (Wed Dec 15, 7:03 am)
Re: [PATCH] net_sched: sch_sfq: fix allot handling, Patrick McHardy, (Wed Dec 15, 9:03 am)
Re: [PATCH] net_sched: sch_sfq: fix allot handling, Eric Dumazet, (Wed Dec 15, 9:27 am)
[PATCH v2] net_sched: sch_sfq: fix allot handling, Eric Dumazet, (Wed Dec 15, 9:40 am)
Re: [PATCH v2] net_sched: sch_sfq: fix allot handling, Patrick McHardy, (Wed Dec 15, 9:43 am)
Re: [PATCH v2] net_sched: sch_sfq: fix allot handling, Eric Dumazet, (Wed Dec 15, 9:55 am)
Re: [PATCH v2] net_sched: sch_sfq: fix allot handling, Patrick McHardy, (Wed Dec 15, 10:03 am)
Re: [PATCH v2] net_sched: sch_sfq: fix allot handling, Eric Dumazet, (Wed Dec 15, 10:09 am)
Re: [PATCH v2] net_sched: sch_sfq: fix allot handling, Patrick McHardy, (Wed Dec 15, 10:21 am)
[PATCH v3] net_sched: sch_sfq: fix allot handling, Eric Dumazet, (Wed Dec 15, 10:30 am)
Re: [PATCH v2] net_sched: sch_sfq: fix allot handling, Eric Dumazet, (Thu Dec 16, 6:08 am)
[RFC PATCH] net_sched: sch_sfq: better struct layouts, Eric Dumazet, (Fri Dec 17, 9:52 am)
Re: [RFC PATCH] net_sched: sch_sfq: better struct layouts, Jarek Poplawski, (Sun Dec 19, 2:22 pm)
[PATCH v2] net_sched: sch_sfq: better struct layouts, Eric Dumazet, (Mon Dec 20, 10:02 am)
Re: [PATCH v3] net_sched: sch_sfq: fix allot handling, David Miller, (Mon Dec 20, 2:18 pm)
Re: [PATCH v2] net_sched: sch_sfq: better struct layouts, Jarek Poplawski, (Mon Dec 20, 3:55 pm)