mlxsw: spectrum_router: Parametrize RIF allocation size
authorIdo Schimmel <idosch@nvidia.com>
Wed, 7 Dec 2022 12:36:43 +0000 (13:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Dec 2022 02:46:31 +0000 (18:46 -0800)
commit1a2f65b4a277fca10bb24d5615e512971a87587a
tree942cd7487efd4e7186a57edebdce917a0baed4ee
parent40ef76de8a7fabb30dafebae4035d3e7eebb47a9
mlxsw: spectrum_router: Parametrize RIF allocation size

Currently, each router interface (RIF) consumes one entry in the RIFs
table. This is going to change in subsequent patches where some RIFs
will consume two table entries.

Prepare for this change by parametrizing the RIF allocation size. For
now, always pass '1'.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c