]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Increase scale of IPv6 nexthop groups
authorIdo Schimmel <idosch@mellanox.com>
Tue, 23 Jul 2019 07:57:42 +0000 (10:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2019 18:36:19 +0000 (11:36 -0700)
commit23387fe9ce6ba83164734776499cd98a24535d14
treeaa0257a7826621bb3046d74a581897f7d018bdf7
parent4d3c128622bfe87a14f5d7136af0df2080289fc1
mlxsw: spectrum_router: Increase scale of IPv6 nexthop groups

Unlike IPv4, the kernel does not consolidate IPv6 nexthop groups. To
avoid exhausting the device's adjacency table - where nexthops are
stored - the driver does this consolidation instead.

Each nexthop group is hashed by XOR-ing the interface indexes of all the
member nexthop devices. However, the ifindex itself is not hashed, which
can result in identical keys used for different groups and finally an
-EBUSY error from rhashtable due to too long objects list.

Improve the situation by hashing the ifindex itself.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c