Skip to content

Commit f766c40

Browse files
Dan Carpentermstsirkin
authored andcommitted
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: baf2ad3 ("vdpa/mlx5: Add RX MAC VLAN filter support") Signed-off-by: Dan Carpenter <[email protected]> Message-Id: <Yp709f1g9NcMBCHg@kili> Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Eli Cohen <[email protected]> Acked-by: Si-Wei Liu <[email protected]>
1 parent a58a7f9 commit f766c40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,6 +1814,7 @@ static virtio_net_ctrl_ack handle_ctrl_vlan(struct mlx5_vdpa_dev *mvdev, u8 cmd)
18141814

18151815
id = mlx5vdpa16_to_cpu(mvdev, vlan);
18161816
mac_vlan_del(ndev, ndev->config.mac, id, true);
1817+
status = VIRTIO_NET_OK;
18171818
break;
18181819
default:
18191820
break;

0 commit comments

Comments
 (0)