OSDN Git Service

virtio-net: don't allocate control_buf if not supported
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Sun, 2 May 2021 09:33:19 +0000 (12:33 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 May 2021 08:55:51 +0000 (04:55 -0400)
commit122b84a1267aec28ab929edae1ac700a03fb65e0
treec833ffc67dc6b298fa46189845193fdd21d464ea
parent3fd02fbbfac0dabb624606d1303d309f34ec15d4
virtio-net: don't allocate control_buf if not supported

Not all virtio_net devices support the ctrl queue feature. Thus, there
is no need to allocate unused resources.

Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Link: https://lore.kernel.org/r/20210502093319.61313-1-mgurtovoy@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c