net/mlx5e: multipath, support routes with more than 2 nexthops
authorMaor Dickman <maord@nvidia.com>
Sun, 9 Oct 2022 06:53:22 +0000 (09:53 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 9 Dec 2022 00:10:55 +0000 (16:10 -0800)
commit7c33e73995e933475985ee0ca3cfa5b335da447e
tree0941d19f1762c43c5b3fbc395b24c3cf3ca1402c
parent6fda078d5f7521cf02f493b62d9d87abda3cb890
net/mlx5e: multipath, support routes with more than 2 nexthops

Today multipath offload is only supported when the number of
nexthops is 2 which block the use of it in case of system with
2 NICs.

This patch solve it by enabling multipath offload per NIC if
2 nexthops of the route are its uplinks.

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