diff options
author | Eric Dumazet <edumazet@google.com> | 2012-05-04 00:37:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-04 11:50:05 -0400 |
commit | 17045755193a93fbd2d97db9aad5e726fc8c2a6d (patch) | |
tree | c12afe250c532626d752f4d894f9537e9d292d0c /net/sched/sch_dsmark.c | |
parent | 041441d0f0d885619d48f8f7682825ace523cf59 (diff) |
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_dsmark.c')
-rw-r--r-- | net/sched/sch_dsmark.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c index 389b856c6653..3886365cc207 100644 --- a/net/sched/sch_dsmark.c +++ b/net/sched/sch_dsmark.c | |||
@@ -265,8 +265,7 @@ static int dsmark_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
265 | return NET_XMIT_SUCCESS; | 265 | return NET_XMIT_SUCCESS; |
266 | 266 | ||
267 | drop: | 267 | drop: |
268 | kfree_skb(skb); | 268 | qdisc_drop(skb, sch); |
269 | sch->qstats.drops++; | ||
270 | return NET_XMIT_SUCCESS | __NET_XMIT_BYPASS; | 269 | return NET_XMIT_SUCCESS | __NET_XMIT_BYPASS; |
271 | } | 270 | } |
272 | 271 | ||