OSDN Git Service

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)
commit425a08c67317acee103b3ad58f57c762e8834faf
tree22ee7c5cbf330364413193ef3c6f9d1ff1829d9c
parent408bd946bfee69ec99937bd0f9ed9dcd2d19705b
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