]> 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)
commit7a8ebb0501c54fbf0fd8b9e8b68ceedb01df5660
tree6a8548ad3407842e43f6f0d2d914e9e420fc98d5
parent83539669726a4ff6c1b6fff4f607016cd2fb4826
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