]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite253671c311311f72630f8df62b7730e31c7e58c
tree6a8548ad3407842e43f6f0d2d914e9e420fc98d5
parent71cb3451565b27234ba7c6c1ef0a7c35ebc62669
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