Skip to content

Commit 1ab5376

Browse files
elic307imstsirkin
authored andcommitted
vdpa/mlx5: Fix wrong mac address deletion
Delete the old MAC from the table and not the new one which is not there yet. Fixes: baf2ad3 ("vdpa/mlx5: Add RX MAC VLAN filter support") Acked-by: Jason Wang <[email protected]> Signed-off-by: Eli Cohen <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 5aec804 commit 1ab5376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ static virtio_net_ctrl_ack handle_ctrl_mac(struct mlx5_vdpa_dev *mvdev, u8 cmd)
16861686

16871687
/* Need recreate the flow table entry, so that the packet could forward back
16881688
*/
1689-
mac_vlan_del(ndev, ndev->config.mac, 0, false);
1689+
mac_vlan_del(ndev, mac_back, 0, false);
16901690

16911691
if (mac_vlan_add(ndev, ndev->config.mac, 0, false)) {
16921692
mlx5_vdpa_warn(mvdev, "failed to insert forward rules, try to restore\n");

0 commit comments

Comments
 (0)