summaryrefslogtreecommitdiff
path: root/drivers/virtio/virtio_ring.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2021-04-13 01:38:08 -0400
committerMichael S. Tsirkin <mst@redhat.com>2021-07-03 04:51:17 -0400
commit22bc63c58e876cc359d0b1566dee3db8ecc16722 (patch)
tree1c33db49b994b50b7370a647959e7ee29ceebf9d /drivers/virtio/virtio_ring.c
parent5a2f966d0f3fa0ef6dada7ab9eda74cacee96b8a (diff)
virtio_net: move txq wakeups under tx q lock
We currently check num_free outside tx q lock which is unsafe: new packets can arrive meanwhile and there won't be space in the queue. Thus a spurious queue wakeup causing overhead and even packet drops. Move the check under the lock to fix that. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_ring.c')
0 files changed, 0 insertions, 0 deletions