virtio_net: Add a lock for per queue RX coalesce
authorDaniel Jurgens <danielj@nvidia.com>
Fri, 3 May 2024 20:24:44 +0000 (23:24 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 7 May 2024 09:42:00 +0000 (11:42 +0200)
commit4d4ac2ececd3c42a08dd32a6e3a4aaf25f7efe44
tree52cd7e498cde974aecc0c828f3908f7620a94a78
parent650d77c51e24ee19af7e39d614e05b8509784afd
virtio_net: Add a lock for per queue RX coalesce

Once the RTNL locking around the control buffer is removed there can be
contention on the per queue RX interrupt coalescing data. Use a mutex
per queue. A mutex is required because virtnet_send_command can sleep.

Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Reviewed-by: Heng Qi <hengqi@linux.alibaba.com>
Tested-by: Heng Qi <hengqi@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/virtio_net.c