| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 2.6] netem limit not returned correctly |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Tue, 3 Aug 2004 13:11:11 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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@xxxxxxxx>
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;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | CONFIG_XFRM vs udp.c, Michael Richardson |
|---|---|
| Next by Date: | [PATCH 2.6] vlan - device refcount bug., Stephen Hemminger |
| Previous by Thread: | CONFIG_XFRM vs udp.c, Michael Richardson |
| Next by Thread: | Re: [PATCH 2.6] netem limit not returned correctly, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |