]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Properly disable vlan strip on non-UL reps
authorVlad Buslov <vladbu@nvidia.com>
Fri, 15 Jul 2022 19:41:48 +0000 (21:41 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 22 Aug 2022 19:57:06 +0000 (12:57 -0700)
commit13a6a760da7f2b1b1011cca6c46f4644fa833317
tree3387effb9e136f8ebbb04c4180d0e9645e4a4838
parent0642ff4fe31d62d47e2da3b17ec735cc6f67ac97
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: 658ea29c0dcf ("net/mlx5e: Introduce SRIOV VF representors")
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c