Skip to contentSkip to conversation

netem: fix loss

PATCH Applied Stephen Hemminger 2 participants 2 messages Apr 28, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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.

net/sched/sch_netem.c +1 -1
@@ -167,7 +167,7 @@ static int netem_enqueue(struct sk_buff 
 	if (count == 0) {
 		sch->qstats.drops++;
 		kfree_skb(skb);
-		return NET_XMIT_DROP;
+		return NET_XMIT_BYPASS;
 	}
 
 	/*