]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/sch_netem.c
net_sched: Add qdisc __NET_XMIT_STOLEN flag
[linux-2.6-omap-h63xx.git] / net / sched / sch_netem.c
index a590857006786dc7d98bac27230f79dbd2cc552c..6cd6f2bc749e7e29a87905fc43018484f72a4ede 100644 (file)
@@ -240,8 +240,9 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch)
                sch->q.qlen++;
                sch->bstats.bytes += qdisc_pkt_len(skb);
                sch->bstats.packets++;
-       } else
+       } else if (net_xmit_drop_count(ret)) {
                sch->qstats.drops++;
+       }
 
        pr_debug("netem: enqueue ret %d\n", ret);
        return ret;