| To: | hadi@xxxxxxxxxx |
|---|---|
| Subject: | Re: [PATCH]: Adjust qlen when grafting in multiple qdiscs |
| From: | Patrick McHardy <kaber@xxxxxxxxx> |
| Date: | Mon, 17 Nov 2003 17:13:51 +0100 |
| Cc: | "David S. Miller" <davem@xxxxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <1069081153.1022.20.camel@jzny.localdomain> |
| References: | <3FB3996A.6080008@trash.net> <1069076786.1075.19.camel@jzny.localdomain> <3FB8DDE0.1070105@trash.net> <1069081153.1022.20.camel@jzny.localdomain> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 |
Hi Jamal, the patch was meant to fix the problem that when replacing (or deleting) a leaf queue that still holds packets the packets are not subtracted from the upper queue's q.qlen. dsmark_reset does set the length to 0 but it is not called when grafting. I've now verified experimentally the problem also exists in dsmark: # tc qdisc add dev eth0 root handle 1: dsmark indices 64 # tc qdisc add dev eth0 parent 1: pfifo limit 100 # netperf -H 192.168.0.1 < queue is holding 38 packets at this moment > # tc qdisc del dev eth0 parent 1: pfifo # tc qdisc add dev eth0 parent 1: pfifo limit 100 # tc -s -d qdisc show dev eth0 qdisc pfifo 800d: limit 100p Sent 296729221 bytes 854680 pkts (dropped 0, overlimits 0) backlog 33p qdisc dsmark 1: indices 0x0040 Sent 510414473 bytes 1489414 pkts (dropped 40, overlimits 0) backlog 71p While it may not be a common operation or not even make sense, it is a valid one and IMHO should be handled correctly. It actually did happen to me while playing with TBF. I missed dsmark only has a single queue so sch->q.qlen = 0 would be ok in dsmark_graft. If you're ok with that, I'm going to change the patch. Best regards, Patrick
Patrick, |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] net/core/flow.c, Arnaldo Carvalho de Melo |
|---|---|
| Next by Date: | Re: [PATCH]: fix queue limits in multiple qdiscs, jamal |
| Previous by Thread: | Re: [PATCH]: Adjust qlen when grafting in multiple qdiscs, jamal |
| Next by Thread: | Re: [PATCH]: Adjust qlen when grafting in multiple qdiscs, jamal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |