mlxsw: spectrum_router: Encode adjacency group size ranges in an array
authorIdo Schimmel <idosch@nvidia.com>
Mon, 22 Mar 2021 15:58:54 +0000 (17:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 20:45:46 +0000 (13:45 -0700)
commit164fa130dd1671797c4249195bc7f5447a34a9c2
tree953231f253d1ce935ce56d7615c196531dd297bb
parentd354fdd923e7a3dc2f5c34cfcfb0401bd8c56ea8
mlxsw: spectrum_router: Encode adjacency group size ranges in an array

The device supports a fixed set of adjacency group sizes. Encode these
sizes in an array, so that the next patch will be able to split it
between Spectrum-1 and Spectrum-{2,3}, which support different size
ranges.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c