]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Don't block routes with nexthop objects in SW
authorMaor Dickman <maord@nvidia.com>
Thu, 30 Dec 2021 09:20:10 +0000 (11:20 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 7 Jan 2022 00:55:40 +0000 (16:55 -0800)
commit73a8e8248a6574d1917c6964c9eca6c533418134
treeac2ca4b8c55337d30aff621d92b1b68efb2df840
parente0880630e68f8faf9e7e84459e380ff824b82391
net/mlx5e: Don't block routes with nexthop objects in SW

Routes with nexthop objects is currently not supported by multipath offload
and any attempts to use it is blocked, however this also block adding SW
routes with nexthop.

Resolve this by returning NOTIFY_DONE instead of an error which will allow such
a route to be created in SW but not offloaded.

This fix also solve an issue which block adding such routes on different devices
due to missing check if the route FIB device is one of multipath devices.

Fixes: 073aa14c169d ("mlx5: Fail attempts to use routes with nexthop objects")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c