| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] loop unrolling in net/sched/sch_generic.c |
| From: | Thomas Graf <tgraf@xxxxxxx> |
| Date: | Thu, 7 Jul 2005 23:34:50 +0200 |
| Cc: | dada1@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20050707.141718.85410359.davem@xxxxxxxxxxxxx> |
| References: | <42CB2698.2080904@xxxxxxxxxxxxx> <42CB2B84.50702@xxxxxxxxxxxxx> <20050706124206.GW16076@xxxxxxxxxxxxxx> <20050707.141718.85410359.davem@xxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
* David S. Miller <20050707.141718.85410359.davem@xxxxxxxxxxxxx> 2005-07-07 14:17 > As an aside, this reminds me that as part of my quest to make > sk_buff smaller, I intend to walk across the tree and change > all tests of the form: > > if (!skb_queue_len(list)) > > into: > > if (skb_queue_empty(list)) > > [...] > > The cases that do care (mostly packet schedulers) can > keep track of the queue length themselves in their private data > structures. When they remove packets, they _know_ which queue to > decrement the queue length of. Since I'm changing the classful qdiscs to use a generic API for queue management anyway I could take care of this if you want. WRT the leaf qdiscs it's a bit more complicated since we have to change the new API to take a new struct which includes the qlen and the sk_buff_head but not a problem either. |
| Previous by Date: | Re: [PATCH] loop unrolling in net/sched/sch_generic.c, David S. Miller |
|---|---|
| Next by Date: | [PATCH 2.6.12.1 1/12] S2io: Code cleanup, raghavendra . koushik |
| Previous by Thread: | Re: [PATCH] loop unrolling in net/sched/sch_generic.c, David S. Miller |
| Next by Thread: | Re: [PATCH] loop unrolling in net/sched/sch_generic.c, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |