summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen2019-01-09 17:09:43 +0100
committerDavid S. Miller2019-01-16 05:12:00 +0100
commit37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea (patch)
tree29e8d6fccf9da0a9c19129f477a0ef0ae244464d /tools
parentsched: Avoid dereferencing skb pointer after child enqueue (diff)
downloadkernel-qcow2-linux-37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea.tar.gz
kernel-qcow2-linux-37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea.tar.xz
kernel-qcow2-linux-37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea.zip
sched: Fix detection of empty queues in child qdiscs
Several qdiscs check on enqueue whether the packet was enqueued to a class with an empty queue, in which case the class is activated. This is done by checking if the qlen is exactly 1 after enqueue. However, if GSO splitting is enabled in the child qdisc, a single packet can result in a qlen longer than 1. This means the activation check fails, leading to a stalled queue. Fix this by checking if the queue is empty *before* enqueue, and running the activation logic if this was the case. Reported-by: Pete Heist <pete@heistp.net> Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions