]> 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)
commit6b8917415af529f559d192bf219a8eb827614405
tree5e69d8cd9976097a9b0358b9d655dff4fe0f372e
parente253671c311311f72630f8df62b7730e31c7e58c
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