summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_htb.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-05-04 04:37:21 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-04 11:50:05 -0400
commit17045755193a93fbd2d97db9aad5e726fc8c2a6d (patch)
treec12afe250c532626d752f4d894f9537e9d292d0c /net/sched/sch_htb.c
parent041441d0f0d885619d48f8f7682825ace523cf59 (diff)
downloadop-kernel-dev-17045755193a93fbd2d97db9aad5e726fc8c2a6d.zip
op-kernel-dev-17045755193a93fbd2d97db9aad5e726fc8c2a6d.tar.gz
net: sched: factorize code (qdisc_drop())
Use qdisc_drop() helper where possible. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_htb.c')
-rw-r--r--net/sched/sch_htb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index 2ea6f19..acae5b0 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -558,9 +558,7 @@ static int htb_enqueue(struct sk_buff *skb, struct Qdisc *sch)
__skb_queue_tail(&q->direct_queue, skb);
q->direct_pkts++;
} else {
- kfree_skb(skb);
- sch->qstats.drops++;
- return NET_XMIT_DROP;
+ return qdisc_drop(skb, sch);
}
#ifdef CONFIG_NET_CLS_ACT
} else if (!cl) {
OpenPOWER on IntegriCloud