mlxsw: spectrum: Implement max rif resource
authorNogah Frankel <nogahf@mellanox.com>
Tue, 20 Sep 2016 09:16:57 +0000 (11:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2016 05:00:59 +0000 (01:00 -0400)
commit8f8a62d462492a043349a08abc51e2ad65b1f49a
tree12959be13f7746066897f0192bb5015640ab3f04
parent274df7fb77fffd243336c6affa2f9469e8f11122
mlxsw: spectrum: Implement max rif resource

Replace max rif const with using the result from resource query.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-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.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c