]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Update check for merged eswitch device
authorRoi Dayan <roid@mellanox.com>
Tue, 5 Feb 2019 07:41:43 +0000 (09:41 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Mar 2019 20:04:18 +0000 (12:04 -0800)
commit46504d3522c4ba342339705783e1e226ced7de7f
tree5e69d8cd9976097a9b0358b9d655dff4fe0f372e
parent7a8ebb0501c54fbf0fd8b9e8b68ceedb01df5660
net/mlx5e: Update check for merged eswitch device

The current check only validates if both netdevs use the same ops
which means both are vf reps or both uplink reps.

Unlike the case where the two uplinks are bonded (VF LAG), under
multipath scheme the switchdev parent id is not unified between the
uplink reps (and all the associated vf reps). However, we still want
to duplicate in the driver encap flows, adjust the merged eswitch
check for that matter.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c