]> 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)
commitc876258028095180cac53d68c6b4d38212d4807c
tree4c356012949ea06437431626494e0173c22ff906
parent532b17c1946d425729720dab9a0296a1a648c612
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