OSDN Git Service

net/mlx5e: Allow one failure when offloading tc encap rules under multipath
authorRoi Dayan <roid@mellanox.com>
Tue, 5 Feb 2019 15:59:58 +0000 (17:59 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Mar 2019 20:04:16 +0000 (12:04 -0800)
commitef06c9ee8933b182f2ecab101ed697b54171f512
tree102a3b7a444256551998bf2def4d4f2465134c89
parent95dc1902c3739a1a44397ea23b52b81375b711b3
net/mlx5e: Allow one failure when offloading tc encap rules under multipath

In a similar manner to uplink/VF LAG, under multipath we add encap peer
rule on the second port as well.

However, unlike the LAG case, we do want to allow failure for adding
one of the rules. This happens due to using a routing hint while doing
the route lookup when one path (next hop device) is down.

Introduce a new flag to indicate that route lookup failed for encap
flow. Note that a flow may still not be offloaded to hw due to missing
neighbour, in that case, the neigh update event will take care of it.

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