Skip to content

Commit b2107cd

Browse files
author
Saeed Mahameed
committed
net/mlx5e: Switchdev representors are not vlan challenged
Before this patch, mlx5 representors advertised the NETIF_F_VLAN_CHALLENGED bit, this could lead to missing features when using reps with vxlan/bridge and maybe other virtual interfaces, when such interfaces inherit this bit and block vlan usage in their topology. Example: $ip link add dev bridge type bridge # add representor interface to the bridge $ip link set dev pf0hpf master $ip link add link bridge name vlan10 type vlan id 10 protocol 802.1q Error: 8021q: VLANs not supported on device. Reps are perfectly capable of handling vlan traffic, although they don't implement vlan_{add,kill}_vid ndos, hence, remove NETIF_F_VLAN_CHALLENGED advertisement. Fixes: cb67b83 ("net/mlx5e: Introduce SRIOV VF representors") Reported-by: Roopa Prabhu <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Reviewed-by: Roi Dayan <[email protected]>
1 parent 94b960b commit b2107cd

File tree

1 file changed

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

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,6 @@ static void mlx5e_build_rep_netdev(struct net_device *netdev,
643643
netdev->hw_features |= NETIF_F_RXCSUM;
644644

645645
netdev->features |= netdev->hw_features;
646-
netdev->features |= NETIF_F_VLAN_CHALLENGED;
647646
netdev->features |= NETIF_F_NETNS_LOCAL;
648647
}
649648

0 commit comments

Comments
 (0)