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)
commitfd8e8d1a775d82f04215f4b884a1962774805346
tree09d5e3661eff4c23fe41b43a8a8fc423570624d6
parent70e57d5e3f8ec7c482b92ef43e543d87134689ab
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