This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / net / sched / sch_tbf.c
index 2c3f14a..a1df304 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/module.h>
 #include <asm/uaccess.h>
 #include <asm/system.h>
-#include <linux/bitops.h>
+#include <asm/bitops.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/jiffies.h>
@@ -141,7 +141,7 @@ static int tbf_enqueue(struct sk_buff *skb, struct Qdisc* sch)
        int ret;
 
        if (skb->len > q->max_size) {
-               sch->qstats.drops++;
+               sch->stats.drops++;
 #ifdef CONFIG_NET_CLS_POLICE
                if (sch->reshape_fail == NULL || sch->reshape_fail(skb, sch))
 #endif
@@ -151,13 +151,13 @@ static int tbf_enqueue(struct sk_buff *skb, struct Qdisc* sch)
        }
 
        if ((ret = q->qdisc->enqueue(skb, q->qdisc)) != 0) {
-               sch->qstats.drops++;
+               sch->stats.drops++;
                return ret;
        }
 
        sch->q.qlen++;
-       sch->bstats.bytes += skb->len;
-       sch->bstats.packets++;
+       sch->stats.bytes += skb->len;
+       sch->stats.packets++;
        return 0;
 }
 
@@ -166,10 +166,8 @@ static int tbf_requeue(struct sk_buff *skb, struct Qdisc* sch)
        struct tbf_sched_data *q = qdisc_priv(sch);
        int ret;
 
-       if ((ret = q->qdisc->ops->requeue(skb, q->qdisc)) == 0) {
+       if ((ret = q->qdisc->ops->requeue(skb, q->qdisc)) == 0)
                sch->q.qlen++;
-               sch->qstats.requeues++;
-       }
 
        return ret;
 }
@@ -181,7 +179,7 @@ static unsigned int tbf_drop(struct Qdisc* sch)
 
        if ((len = q->qdisc->ops->drop(q->qdisc)) != 0) {
                sch->q.qlen--;
-               sch->qstats.drops++;
+               sch->stats.drops++;
        }
        return len;
 }
@@ -252,11 +250,11 @@ static struct sk_buff *tbf_dequeue(struct Qdisc* sch)
                if (q->qdisc->ops->requeue(skb, q->qdisc) != NET_XMIT_SUCCESS) {
                        /* When requeue fails skb is dropped */
                        sch->q.qlen--;
-                       sch->qstats.drops++;
+                       sch->stats.drops++;
                }
 
                sch->flags |= TCQ_F_THROTTLED;
-               sch->qstats.overlimits++;
+               sch->stats.overlimits++;
        }
        return NULL;
 }