commit | 6445eef0f600b726da19b4d5885ebb25ba47f590 | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@nvidia.com> | Mon Apr 18 09:42:40 2022 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 18 11:00:19 2022 +0100 |
tree | f39f1c7670f50f7bc116f94f7550c5dc3323a72c | |
parent | 45bf3b7267e0264ff25f85ea46ba4628d39b69b4 [diff] |
mlxsw: spectrum: Add port to linecard mapping For each port get slot_index using PMLP register. For ports residing on a linecard, identify it with the linecard by setting mapping using devlink_port_linecard_set() helper. Use linecard slot index for PMTDB register queries. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>