|
@@ -127,7 +127,7 @@ static int tbf_enqueue(struct sk_buff *skb, struct Qdisc* sch)
|
|
|
return qdisc_reshape_fail(skb, sch);
|
|
|
|
|
|
ret = qdisc_enqueue(skb, q->qdisc);
|
|
|
- if (ret != 0) {
|
|
|
+ if (ret != NET_XMIT_SUCCESS) {
|
|
|
if (net_xmit_drop_count(ret))
|
|
|
sch->qstats.drops++;
|
|
|
return ret;
|
|
@@ -136,7 +136,7 @@ static int tbf_enqueue(struct sk_buff *skb, struct Qdisc* sch)
|
|
|
sch->q.qlen++;
|
|
|
sch->bstats.bytes += qdisc_pkt_len(skb);
|
|
|
sch->bstats.packets++;
|
|
|
- return 0;
|
|
|
+ return NET_XMIT_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static unsigned int tbf_drop(struct Qdisc* sch)
|