Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
authorDavid S. Miller <davem@davemloft.net>
Mon, 24 Jan 2011 22:09:35 +0000 (14:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jan 2011 22:09:35 +0000 (14:09 -0800)
Conflicts:
net/sched/sch_hfsc.c
net/sched/sch_htb.c
net/sched/sch_tbf.c

17 files changed:
1  2 
Documentation/feature-removal-schedule.txt
include/net/sch_generic.h
net/core/dev.c
net/core/rtnetlink.c
net/netfilter/nf_conntrack_netlink.c
net/sched/sch_cbq.c
net/sched/sch_dsmark.c
net/sched/sch_fifo.c
net/sched/sch_hfsc.c
net/sched/sch_htb.c
net/sched/sch_multiq.c
net/sched/sch_netem.c
net/sched/sch_prio.c
net/sched/sch_red.c
net/sched/sch_sfq.c
net/sched/sch_tbf.c
net/sched/sch_teql.c

Simple merge
diff --cc net/core/dev.c
Simple merge
Simple merge
Simple merge
index 25ed522b2891556427e5011c15b9f976c4585077,5f63ec58942c10ac5088c6e6fca6e40463235a0b..24d94c097b35f34bfee4ff5aed2a724e8549176d
@@@ -973,8 -969,9 +971,9 @@@ cbq_dequeue(struct Qdisc *sch
  
                skb = cbq_dequeue_1(sch);
                if (skb) {
+                       qdisc_bstats_update(sch, skb);
                        sch->q.qlen--;
 -                      sch->flags &= ~TCQ_F_THROTTLED;
 +                      qdisc_unthrottled(sch);
                        return skb;
                }
  
Simple merge
index f7290d2542c2f873b7884abf94d74f858b77b1b3,d468b479aa937f410a665045eb4018bfc08de255..be33f9ddf9ddef7d874b351cabaa9f72788c5d21
@@@ -43,9 -44,8 +43,8 @@@ static int pfifo_enqueue(struct sk_buf
        return qdisc_reshape_fail(skb, sch);
  }
  
 -static int pfifo_tail_enqueue(struct sk_buff *skb, struct Qdiscsch)
 +static int pfifo_tail_enqueue(struct sk_buff *skb, struct Qdisc *sch)
  {
-       struct sk_buff *skb_head;
        struct fifo_sched_data *q = qdisc_priv(sch);
  
        if (likely(skb_queue_len(&sch->q) < q->limit))
index b632d925191312ba9e28a1df17f97c6e1089d453,14a799de1c3535ed99c9af448080265fa406fe88..6488e64256521f69512ee3be26589dd265e3f9bb
@@@ -1664,7 -1664,8 +1663,8 @@@ hfsc_dequeue(struct Qdisc *sch
                set_passive(cl);
        }
  
 -      sch->flags &= ~TCQ_F_THROTTLED;
 +      qdisc_unthrottled(sch);
+       qdisc_bstats_update(sch, skb);
        sch->q.qlen--;
  
        return skb;
index 39db75cd8c17c151bc572eb086faa842ccd2f14e,fc12fe6f559796d11aaa8b4e769b26a6a28643e9..e1429a85091fc271c85948fff6e0914739ef93ee
@@@ -865,7 -850,9 +864,9 @@@ static struct sk_buff *htb_dequeue(stru
        /* try to dequeue direct packets as high prio (!) to minimize cpu work */
        skb = __skb_dequeue(&q->direct_queue);
        if (skb != NULL) {
 -              sch->flags &= ~TCQ_F_THROTTLED;
+ ok:
+               qdisc_bstats_update(sch, skb);
 +              qdisc_unthrottled(sch);
                sch->q.qlen--;
                return skb;
        }
                m = ~q->row_mask[level];
                while (m != (int)(-1)) {
                        int prio = ffz(m);
 +
                        m |= 1 << prio;
                        skb = htb_dequeue_tree(q, prio, level);
-                       if (likely(skb != NULL)) {
-                               sch->q.qlen--;
-                               qdisc_unthrottled(sch);
-                               goto fin;
-                       }
+                       if (likely(skb != NULL))
+                               goto ok;
                }
        }
        sch->qstats.overlimits++;
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 86c016696977b3296f82b3edb0ecf45c35d1816a,e93165820c3f02ec4edc072b26b04dcdd4645ce0..1dcfb5223a861fec4e5e4e41200b86f070363baf
@@@ -185,7 -185,8 +184,8 @@@ static struct sk_buff *tbf_dequeue(stru
                        q->tokens = toks;
                        q->ptokens = ptoks;
                        sch->q.qlen--;
 -                      sch->flags &= ~TCQ_F_THROTTLED;
 +                      qdisc_unthrottled(sch);
+                       qdisc_bstats_update(sch, skb);
                        return skb;
                }
  
Simple merge