virtio_net: Add a lock for the command VQ.
authorDaniel Jurgens <danielj@nvidia.com>
Fri, 3 May 2024 20:24:42 +0000 (23:24 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 7 May 2024 09:42:00 +0000 (11:42 +0200)
commit6f45ab3e0409cf7e573450c26b052871cea4e7a0
treed9c4a3052e77154f10cf8004ee6a7ddefc7b834d
parentff7c7d9f5261e4372e541e6bb6781b386a839b48
virtio_net: Add a lock for the command VQ.

The command VQ will no longer be protected by the RTNL lock. Use a
mutex to protect the control buffer header and the VQ.

Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@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