]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: fix pfifo_head_drop behavior vs backlog
authorEric Dumazet <edumazet@google.com>
Mon, 13 Jun 2016 03:01:25 +0000 (20:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jun 2016 21:17:58 +0000 (17:17 -0400)
commit67d31e049f46d09624256ada6dc401d69fe6b366
tree966844c4135e7b6a037db8f2ad66c072b61f20fd
parentbd4e72db77230b0f4b3cd2ae0aa8a293f00d07fa
net_sched: fix pfifo_head_drop behavior vs backlog

When the qdisc is full, we drop a packet at the head of the queue,
queue the current skb and return NET_XMIT_CN

Now we track backlog on upper qdiscs, we need to call
qdisc_tree_reduce_backlog(), even if the qlen did not change.

Fixes: 329ca48484a3 ("net_sched: update hierarchical backlog too")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fifo.c