* [PATCH 2.6] netem limit not returned correctly
@ 2004-08-03 20:11 Stephen Hemminger
2004-08-03 21:24 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2004-08-03 20:11 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
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>
diff -Nru a/net/sched/sch_netem.c b/net/sched/sch_netem.c
--- a/net/sched/sch_netem.c 2004-08-03 13:10:17 -07:00
+++ b/net/sched/sch_netem.c 2004-08-03 13:10:17 -07:00
@@ -825,7 +825,7 @@
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-03 21:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-03 20:11 [PATCH 2.6] netem limit not returned correctly Stephen Hemminger
2004-08-03 21:24 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).