]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdbfd8f5cc077df99cb0e168d837c758350e9b0f8
treed68535b875ab5835504be2867569ed7b54a6c49a
parent91abb385b6494df84432aa27a012f15d4e104be8
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