]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Push getting offsets of split ports into a helper
authorJiri Pirko <jiri@mellanox.com>
Thu, 31 Oct 2019 09:42:15 +0000 (11:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 17:54:47 +0000 (10:54 -0700)
commit64d04791b2b81a6065737ff6a1d6c7675e16674b
treeabf7c142f1f34b6dde164b202806bb0ec9ce1ba9
parent881f39b91a5be8d8e2c9de8cd99594df6f395e35
mlxsw: spectrum: Push getting offsets of split ports into a helper

Get local port offsets of split port in a separate helper function and
use it in both split and unsplit function.

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