Skip to content

Commit a90aa98

Browse files
Revert "vdpa/mlx5: Fix rule forwarding VLAN to TIR"
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2169174 Upstream Status: RHEL only SVQ can not work with vlan filtering and support VLAN in SVQ is not a high priority now, so need to revert these commit in rhel9.2 This reverts commit d119215. Signed-off-by: Cindy Lu <lulu@redhat.com>
1 parent 283c1ea commit a90aa98

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,13 +1468,11 @@ static int mlx5_vdpa_add_mac_vlan_rules(struct mlx5_vdpa_net *ndev, u8 *mac,
14681468
dmac_v = MLX5_ADDR_OF(fte_match_param, headers_v, outer_headers.dmac_47_16);
14691469
eth_broadcast_addr(dmac_c);
14701470
ether_addr_copy(dmac_v, mac);
1471-
if (ndev->mvdev.actual_features & BIT_ULL(VIRTIO_NET_F_CTRL_VLAN)) {
1472-
MLX5_SET(fte_match_set_lyr_2_4, headers_c, cvlan_tag, 1);
1473-
MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, first_vid);
1474-
}
1471+
MLX5_SET(fte_match_set_lyr_2_4, headers_c, cvlan_tag, 1);
14751472
if (tagged) {
14761473
MLX5_SET(fte_match_set_lyr_2_4, headers_v, cvlan_tag, 1);
1477-
MLX5_SET(fte_match_set_lyr_2_4, headers_v, first_vid, vid);
1474+
MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, first_vid);
1475+
MLX5_SET(fte_match_set_lyr_2_4, headers_c, first_vid, vid);
14781476
}
14791477
flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST;
14801478
dest.type = MLX5_FLOW_DESTINATION_TYPE_TIR;

0 commit comments

Comments
 (0)