]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Prepare for large adjacency groups
authorIdo Schimmel <idosch@mellanox.com>
Sun, 22 Oct 2017 21:11:47 +0000 (23:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2017 04:23:06 +0000 (05:23 +0100)
commitd4605b1699a8580369947ed94f69f4266c466d19
tree22ee7c5cbf330364413193ef3c6f9d1ff1829d9c
parent889e698f2f91c5eaefd9858860a32e381d1313d0
mlxsw: spectrum_router: Prepare for large adjacency groups

The device has certain restrictions regarding the size of an adjacency
group.

Have the router determine the size of the adjacency group according to
available KVDL allocation sizes and these restrictions.

This was not needed until now since only allocations of up 32 entries
were supported and these are all valid sizes for an adjacency group.

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