Commit 8156f706 authored by David S. Miller's avatar David S. Miller

[PKT_SCHED]: Fix sch_atm build.

Move it over to use qstats/bstats.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7713c72e
...@@ -449,12 +449,12 @@ static int atm_tc_enqueue(struct sk_buff *skb,struct Qdisc *sch) ...@@ -449,12 +449,12 @@ static int atm_tc_enqueue(struct sk_buff *skb,struct Qdisc *sch)
result == TC_POLICE_SHOT || result == TC_POLICE_SHOT ||
#endif #endif
(ret = flow->q->enqueue(skb,flow->q)) != 0) { (ret = flow->q->enqueue(skb,flow->q)) != 0) {
sch->stats.drops++; sch->qstats.drops++;
if (flow) flow->stats.drops++; if (flow) flow->stats.drops++;
return ret; return ret;
} }
sch->stats.bytes += skb->len; sch->bstats.bytes += skb->len;
sch->stats.packets++; sch->bstats.packets++;
flow->stats.bytes += skb->len; flow->stats.bytes += skb->len;
flow->stats.packets++; flow->stats.packets++;
/* /*
...@@ -547,7 +547,7 @@ static int atm_tc_requeue(struct sk_buff *skb,struct Qdisc *sch) ...@@ -547,7 +547,7 @@ static int atm_tc_requeue(struct sk_buff *skb,struct Qdisc *sch)
ret = p->link.q->ops->requeue(skb,p->link.q); ret = p->link.q->ops->requeue(skb,p->link.q);
if (!ret) sch->q.qlen++; if (!ret) sch->q.qlen++;
else { else {
sch->stats.drops++; sch->qstats.drops++;
p->link.stats.drops++; p->link.stats.drops++;
} }
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment