aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2004-08-03 00:13:23 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-08-03 00:13:23 -0700
commitd06a2c66488d603dc576c1764bfa3814e0980e4b (patch)
tree5c76d108a08a4ce6bbb1e62cf1cc2dc9f6221c60 /net
parente1564ac345ad5204c20df381196a8db44e8e3b86 (diff)
downloadhistory-d06a2c66488d603dc576c1764bfa3814e0980e4b.tar.gz
[PKT_SCHED]: netem limit not returned correctly
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>
Diffstat (limited to 'net')
-rw-r--r--net/sched/sch_netem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
index 12cc95eac33985..2d72f9a7685ccd 100644
--- a/net/sched/sch_netem.c
+++ b/net/sched/sch_netem.c
@@ -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;