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)
commit68931c7dd71efd9be19f0b5777f2c6e78a9f1185
tree5e69d8cd9976097a9b0358b9d655dff4fe0f372e
parent5fb091e8130bdd3649ca80957e59c87defbb13f9
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