summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-04-28 12:11:36 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-04-29 18:33:12 -0700
commit89bbb0a361cdae50eec863f10a876b58abf7d312 (patch)
tree47a12fa9cb97f5100992dbb407dbe081a725de2a /net/sched
parent43dff98b022ded593e73c3784bac03bc9fc7ec55 (diff)
downloadtalos-obmc-linux-89bbb0a361cdae50eec863f10a876b58abf7d312.tar.gz
talos-obmc-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>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_netem.c2
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;
}
/*
OpenPOWER on IntegriCloud