Skip to content

Commit eb8236d

Browse files
w1ldptrgregkh
authored andcommitted
net/mlx5e: Properly disable vlan strip on non-UL reps
[ Upstream commit f37044f ] When querying mlx5 non-uplink representors capabilities with ethtool rx-vlan-offload is marked as "off [fixed]". However, it is actually always enabled because mlx5e_params->vlan_strip_disable is 0 by default when initializing struct mlx5e_params instance. Fix the issue by explicitly setting the vlan_strip_disable to 'true' for non-uplink representors. Fixes: cb67b83 ("net/mlx5e: Introduce SRIOV VF representors") Signed-off-by: Vlad Buslov <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 6e4b20d commit eb8236d

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+2
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_rep.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,8 @@ static void mlx5e_build_rep_params(struct net_device *netdev)
14341434

14351435
params->num_tc = 1;
14361436
params->tunneled_offload_en = false;
1437+
if (rep->vport != MLX5_VPORT_UPLINK)
1438+
params->vlan_strip_disable = true;
14371439

14381440
mlx5_query_min_inline(mdev, &params->tx_min_inline_mode);
14391441

0 commit comments

Comments
 (0)