]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: In case of LAG, one switch parent id is used for all representors
authorRabie Loulou <rabiel@mellanox.com>
Wed, 6 Jun 2018 12:49:27 +0000 (15:49 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 14 Dec 2018 21:28:52 +0000 (13:28 -0800)
commitd03b75ad23d2fe5c4326d766a97f7cb702956074
treeebc6169fa1dfdb68eac8e1f3210361793a15b32d
parentf9e03b4d364fb611dfcd04e84f603bb1936b6ce9
net/mlx5e: In case of LAG, one switch parent id is used for all representors

When the uplink representors are put into lag, set all the
representors (VFs and uplinks) of the same NIC to return the same
switchdev id.

Currently, the route lookup code on the encapsulation offload path
assumes that same switchdev id for the source and dest devices means
that the dest is also mlx5 HW netdev. This doesn't hold anymore when we
align the switchdev Id of the uplinks to be same, which in turn causes
the bond/team to return that id to the caller. As such, enhance the
relevant check to take into account the uplink lag case.

Signed-off-by: Rabie Loulou <rabiel@mellanox.com>
Signed-off-by: Aviv Heller <avivh@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c