]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: check for frozen queue before skb_bad_txq check
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 7 Dec 2017 17:56:42 +0000 (09:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Dec 2017 18:32:26 +0000 (13:32 -0500)
commit88cff7a2f92636d3697e61d3909dc60f01f64802
tree09d5e3661eff4c23fe41b43a8a8fc423570624d6
parent46f3d47bd47180a3a0a7cc923ba65a76e48c0758
net: sched: check for frozen queue before skb_bad_txq check

I can not think of any reason to pull the bad txq skb off the qdisc if
the txq we plan to send this on is still frozen. So check for frozen
queue first and abort before dequeuing either skb_bad_txq skb or
normal qdisc dequeue() skb.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c