]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5230c01a887cc43a6e2d0fb7c554b7d821f0c897
tree4e28ffd32dc76010b73bbb3e29dcb69f14093193
parent7787cb31a726c1d33edcf07349d71598a6ce8dec
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