mlxsw: spectrum: Introduce resource for getting offset of 4 lanes split port
authorJiri Pirko <jiri@mellanox.com>
Thu, 31 Oct 2019 09:42:16 +0000 (11:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 17:54:47 +0000 (10:54 -0700)
commit038784a9dfc2180dde36d34a92cb4427eb1e928f
tree4e28ffd32dc76010b73bbb3e29dcb69f14093193
parentd0846ce9aa9096e53e532a1c36c57efe63509b26
mlxsw: spectrum: Introduce resource for getting offset of 4 lanes split port

In Spectrum-3 the modules have 8 lanes, so split by count 2 results in
two split ports each of 4 lanes. Add a resource that can be used to
obtain local port offset in that case.

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