Re: [PATCH RFC 3/3] net_sched: Add size table for qdiscs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jussi Kivilinna <jussi.kivilinna@...>
Cc: <netdev@...>
Date: Thursday, July 17, 2008 - 6:30 am

Jussi Kivilinna wrote:

Please use "unsigned int".


Since you already split the STAB into a base and a data
structure, wouldn't it make sense to have the data size
dynamic for user-defined granularity?


ERR_PTR is cleaner than pointer return values IMO.


A BUILD_BUG_ON to make sure the skb->cb size is not exceeded would
be good to have.


How about adding qdisc_enqueue_root() to perform both these steps
(its similar to net/core/dev.c).


I don't think this will help, the inner qdisc might again have
an inner qdisc that increases the size. So this probably needs
to be handled during dequeue.


--
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 RFC 0/3] Add generic size table for qdiscs, Jussi Kivilinna, (Thu Jul 17, 6:09 am)
[PATCH RFC 3/3] net_sched: Add size table for qdiscs, Jussi Kivilinna, (Thu Jul 17, 6:09 am)
Re: [PATCH RFC 3/3] net_sched: Add size table for qdiscs, Patrick McHardy, (Thu Jul 17, 6:30 am)
Re: [PATCH RFC 3/3] net_sched: Add size table for qdiscs, Jussi Kivilinna, (Thu Jul 17, 2:02 pm)
Re: [PATCH RFC 3/3] net_sched: Add size table for qdiscs, Patrick McHardy, (Mon Jul 21, 9:00 am)
Re: [PATCH RFC 3/3] net_sched: Add size table for qdiscs, Jussi Kivilinna, (Mon Jul 21, 9:03 am)
[PATCH RFC 1/3] net_sched: Add qdisc_enqueue wrapper, Jussi Kivilinna, (Thu Jul 17, 6:09 am)
Re: [PATCH RFC 1/3] net_sched: Add qdisc_enqueue wrapper, Patrick McHardy, (Thu Jul 17, 6:10 am)