summaryrefslogtreecommitdiff
path: root/drivers/vdpa
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-06-07 09:49:25 +0300
committerMichael S. Tsirkin <mst@redhat.com>2022-06-08 15:56:03 +0300
commitf766c409fcb33cfd0f511e8251831520e089eb89 (patch)
treec6496d4dace932018ec54dcfd9b16294a245e1c2 /drivers/vdpa
parenta58a7f97ba11391d2d0d408e0b24f38d86ae748e (diff)
downloadlinux-f766c409fcb33cfd0f511e8251831520e089eb89.tar.xz
vdpa/mlx5: fix error code for deleting vlan
Return success if we were able to delete a vlan. The current code always returns failure. Fixes: baf2ad3f6a98 ("vdpa/mlx5: Add RX MAC VLAN filter support") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Message-Id: <Yp709f1g9NcMBCHg@kili> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Eli Cohen <elic@nvidia.com> Acked-by: Si-Wei Liu <si-wei.liu@oracle.com>
Diffstat (limited to 'drivers/vdpa')
-rw-r--r--drivers/vdpa/mlx5/net/mlx5_vnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c
index b878c1095530..51fb15c35e42 100644
--- a/drivers/vdpa/mlx5/net/mlx5_vnet.c
+++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c
@@ -1814,6 +1814,7 @@ static virtio_net_ctrl_ack handle_ctrl_vlan(struct mlx5_vdpa_dev *mvdev, u8 cmd)
id = mlx5vdpa16_to_cpu(mvdev, vlan);
mac_vlan_del(ndev, ndev->config.mac, id, true);
+ status = VIRTIO_NET_OK;
break;
default:
break;