netem: fix loss
Subsystems (4)
PATCH 1/1 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 <[email protected]>
net/sched/sch_netem.c +1 -1
@@ -167,7 +167,7 @@ static int netem_enqueue(struct sk_buffif (count ==0 ) { sch->qstats.drops++;kfree_skb (skb); -return NET_XMIT_DROP ; +return NET_XMIT_BYPASS ; }/*
From: Stephen Hemminger <[email protected]>
Date: Fri, 28 Apr 2006 10:22:40 -0700
Quoted 5 lines
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 <[email protected]>
Applied, thanks Stephen.