]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa/mlx5: Return error on vlan ctrl commands if not supported
authorEli Cohen <elic@nvidia.com>
Mon, 14 Nov 2022 13:17:53 +0000 (15:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:24:31 +0000 (07:24 +0100)
commit6ea6e4c2b4161a0157249e5e7473a160ea49817a
tree4e7ee36be4707390176be5e924d77d31edbf9763
parent201e58dcfa13f932375488371f78744978e25aae
vdpa/mlx5: Return error on vlan ctrl commands if not supported

[ Upstream commit 5aec804936bbff182081f1cdc271fcb76af1a4ff ]

Check if VIRTIO_NET_F_CTRL_VLAN is negotiated and return error if
control VQ command is received.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Message-Id: <20221114131759.57883-3-elic@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vdpa/mlx5/net/mlx5_vnet.c