From: Stephen Hemminger Date: Fri, 28 Apr 2006 19:11:36 +0000 (-0700) Subject: [PKT_SCHED] netem: fix loss X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=89bbb0a361cdae50eec863f10a876b58abf7d312;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: David S. Miller --- 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; } /*