]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Make system port to local port mapping explicit
authorIdo Schimmel <idosch@mellanox.com>
Thu, 6 Aug 2015 14:41:53 +0000 (16:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2015 05:54:09 +0000 (22:54 -0700)
commita7c2a8a720063d4281298107e21f65c4d0b5b0c0
tree4c356012949ea06437431626494e0173c22ff906
parentc172651aa0d8a6e4de826bc5501ba3d6b369fe2e
mlxsw: Make system port to local port mapping explicit

System ports are unique identifiers in a multi-ASIC environment that
represent all the available ports in the system. Local ports on the
other hand, are unique only within the local ASIC.

Since system port to local port mapping is not part of the HW-SW
contract and since only single-ASIC configurations are currently
supported, set an explicit 1:1 mapping by configuring the Switch System
Port Record (SSPR) register.

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