mlxsw: spectrum: Generalize split count check
authorJiri Pirko <jiri@mellanox.com>
Thu, 31 Oct 2019 09:42:21 +0000 (11:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 17:54:47 +0000 (10:54 -0700)
commit973b7fdb5ff17e5f19eba9103c3fcb77a01b93df
treed68535b875ab5835504be2867569ed7b54a6c49a
parentfbbeea31026767706f0644f14c3cf13cbc2fa3c8
mlxsw: spectrum: Generalize split count check

Make the check generic for any possible value, not only 2 and 4.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Shalom Toledo <shalomt@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c