diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-04-28 21:11:36 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-04-30 03:33:12 +0200 |
commit | 89bbb0a361cdae50eec863f10a876b58abf7d312 (patch) | |
tree | 47a12fa9cb97f5100992dbb407dbe081a725de2a | |
parent | [X25]: fix for spinlock recurse and spinlock lockup with timer handler (diff) | |
download | linux-89bbb0a361cdae50eec863f10a876b58abf7d312.tar.xz linux-89bbb0a361cdae50eec863f10a876b58abf7d312.zip |
[PKT_SCHED] netem: fix loss
The following one line fix is needed to make loss function of
netem work right when doing loss on the local host.
Otherwise, higher layers just recover.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sched/sch_netem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 7228d30512c7..5a4a4d0ae502 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c @@ -167,7 +167,7 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch) if (count == 0) { sch->qstats.drops++; kfree_skb(skb); - return NET_XMIT_DROP; + return NET_XMIT_BYPASS; } /* |