mlxsw: spectrum: Implement max virtual routers resource
authorNogah Frankel <nogahf@mellanox.com>
Tue, 20 Sep 2016 09:16:54 +0000 (11:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2016 05:00:59 +0000 (01:00 -0400)
commit9497c042bfa9012cdefaddd8588b031bfae59a7c
treef94b5ede4936eac1852eccfb3009e2133da5a3ee
parentb8a09f0a0938acee81c386e3c27e7aca78b087eb
mlxsw: spectrum: Implement max virtual routers resource

Replace max virtual routers const with the result from
the 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.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c