[PKT_SCHED] netem: fix loss
authorStephen Hemminger <shemminger@osdl.org>
Fri, 28 Apr 2006 19:11:36 +0000 (12:11 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 30 Apr 2006 01:33:12 +0000 (18:33 -0700)
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>
net/sched/sch_netem.c

index 7228d30512c79466675276933268b6dcfc31972e..5a4a4d0ae50226615a3c6661b544e5c333162521 100644 (file)
@@ -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;
        }
 
        /*