aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_cbq.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2008-07-20 03:08:04 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-20 03:08:04 -0400
commit5f86173bdf15981ca49d0434f638b68f70a35644 (patch)
treee6792339e577ed4a8261358e56df9f1a2b87f655 /net/sched/sch_cbq.c
parentdb7a94d60f871ce6a52e97d82dea476cee0c4ea0 (diff)
net_sched: Add qdisc_enqueue wrapper
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_cbq.c')
-rw-r--r--net/sched/sch_cbq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c
index a3953bbe2d79..1afe3eece627 100644
--- a/net/sched/sch_cbq.c
+++ b/net/sched/sch_cbq.c
@@ -387,7 +387,8 @@ cbq_enqueue(struct sk_buff *skb, struct Qdisc *sch)
387#ifdef CONFIG_NET_CLS_ACT 387#ifdef CONFIG_NET_CLS_ACT
388 cl->q->__parent = sch; 388 cl->q->__parent = sch;
389#endif 389#endif
390 if ((ret = cl->q->enqueue(skb, cl->q)) == NET_XMIT_SUCCESS) { 390 ret = qdisc_enqueue(skb, cl->q);
391 if (ret == NET_XMIT_SUCCESS) {
391 sch->q.qlen++; 392 sch->q.qlen++;
392 sch->bstats.packets++; 393 sch->bstats.packets++;
393 sch->bstats.bytes+=len; 394 sch->bstats.bytes+=len;
@@ -671,7 +672,7 @@ static int cbq_reshape_fail(struct sk_buff *skb, struct Qdisc *child)
671 q->rx_class = cl; 672 q->rx_class = cl;
672 cl->q->__parent = sch; 673 cl->q->__parent = sch;
673 674
674 if (cl->q->enqueue(skb, cl->q) == 0) { 675 if (qdisc_enqueue(skb, cl->q) == 0) {
675 sch->q.qlen++; 676 sch->q.qlen++;
676 sch->bstats.packets++; 677 sch->bstats.packets++;
677 sch->bstats.bytes+=len; 678 sch->bstats.bytes+=len;