Commit d06a2c66 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[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: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent e1564ac3
...@@ -825,7 +825,7 @@ static int netem_dump(struct Qdisc *sch, struct sk_buff *skb) ...@@ -825,7 +825,7 @@ static int netem_dump(struct Qdisc *sch, struct sk_buff *skb)
qopt.latency = q->latency; qopt.latency = q->latency;
qopt.jitter = q->jitter; qopt.jitter = q->jitter;
qopt.limit = sch->dev->tx_queue_len; qopt.limit = q->limit;
qopt.loss = q->loss; qopt.loss = q->loss;
qopt.gap = q->gap; qopt.gap = q->gap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment