]> git.hungrycats.org Git - linux/commitdiff
[PKT_SCHED]: netem limit not returned correctly
authorStephen Hemminger <shemminger@osdl.org>
Tue, 3 Aug 2004 07:13:23 +0000 (00:13 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Tue, 3 Aug 2004 07:13:23 +0000 (00:13 -0700)
Minor leftover from earlier code.  Netem scheduler is not reporting
correct limit (ie for 'tc qdisc ls') because it is returning devices limit
not it's own.

Should apply to 2.4 as well (with fuzz)

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
net/sched/sch_netem.c

index 12cc95eac33985401a4b9e7502a64e307f709b46..2d72f9a7685ccd4433f6be2a0c401d270b34344d 100644 (file)
@@ -825,7 +825,7 @@ static int netem_dump(struct Qdisc *sch, struct sk_buff *skb)
 
        qopt.latency = q->latency;
        qopt.jitter = q->jitter;
-       qopt.limit = sch->dev->tx_queue_len;
+       qopt.limit = q->limit;
        qopt.loss = q->loss;
        qopt.gap = q->gap;