OSDN Git Service

net/mlx5e: Use hint to resolve route when in HW multipath mode
authorRoi Dayan <roid@mellanox.com>
Tue, 5 Feb 2019 07:48:38 +0000 (09:48 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Mar 2019 20:04:17 +0000 (12:04 -0800)
commit5fb091e8130bdd3649ca80957e59c87defbb13f9
tree6a8548ad3407842e43f6f0d2d914e9e420fc98d5
parent316d5f72b4c1d4122f83cccbc9002e7b13660077
net/mlx5e: Use hint to resolve route when in HW multipath mode

As part of creating the tunnel headers while offloading TC encap rules,
we resolve the route and neighbour in order to get the source /
destination mac.

Since the way we offload multipath route is by having two HW rules,
one per uplink port, doing naive route lookup might get us a "wrong"
routing path which goes through the peer uplink and this will get us
eventually to create a wrong L2 header for the tunnel.

To avoid that, we use a device hint to get the correct route.

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_tun.c