Skip to content

Commit f37044f

Browse files
w1ldptrSaeed Mahameed
authored and
Saeed Mahameed
committed
net/mlx5e: Properly disable vlan strip on non-UL reps
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]>
1 parent f1e941d commit f37044f

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
@@ -662,6 +662,8 @@ static void mlx5e_build_rep_params(struct net_device *netdev)
662662

663663
params->mqprio.num_tc = 1;
664664
params->tunneled_offload_en = false;
665+
if (rep->vport != MLX5_VPORT_UPLINK)
666+
params->vlan_strip_disable = true;
665667

666668
mlx5_query_min_inline(mdev, &params->tx_min_inline_mode);
667669
}

0 commit comments

Comments
 (0)