sonic-buildimage/platform/mellanox
Sudharsan Dhamal Gopalarathnam 156189dbad [Mellanox]Fix lpmode set when logical port is larger than 64 (#14138)
- Why I did it
In sfplpm API, the number of logical ports is hardcoded as 64. When a system contains more port than this, the SDK APIs would fail with a syslog as below

Mar 7 03:53:58.105980 r-leopard-58 ERR syncd#SDK: [MGMT_LIB.ERR] Slot [0] Module [0] has logport [0x00010069] in enabled state
Mar 7 03:53:58.105980 r-leopard-58 ERR syncd#SDK: [SDK_MGMT_LIB.ERR] Failed in __sdk_mgmt_phy_module_pwr_attr_set, error: Internal Error
Mar 7 03:53:58.106118 r-leopard-58 ERR pmon#-c: Error occurred when setting power mode for SFP module 0, slot 0, error code 1

- How I did it
Remove the hardcoded value of 64. Obtained the number of logical ports from SDK

- How to verify it
Manual testing
2023-03-19 20:50:58 +08:00
..
docker-saiserver-mlnx [infra] Support syslog rate limit configuration (#12490) (#13535) 2023-01-30 20:11:44 +02:00
docker-syncd-mlnx [Mellanox] [ECMP calculator] Add support for 4600/4600C/2201 platforms with different interface naming method (#13814) (#13931) 2023-02-22 22:14:09 +08:00
docker-syncd-mlnx-rpc
hw-management [Mellanox] fix for watchdog device not found, adding dependency on hw-management (#14182) 2023-03-19 20:50:44 +08:00
issu-version
mft [Mellanox] Enhance MFT make file to download source code from any valid URL (#13801) (#13868) 2023-02-18 02:14:00 +08:00
mlnx-platform-api [Mellanox]Fix lpmode set when logical port is larger than 64 (#14138) 2023-03-19 20:50:58 +08:00
mlnx-sai
non-upstream-patches [Mellanox] Non upstream patches for hw-mgmt V.4.0020.4104 (#13792) (#13960) 2023-02-23 20:32:09 +08:00
sdk-src [Mellanox] update sdk/fw build procedure (#14025) (#14059) 2023-03-03 02:43:19 +08:00
.gitignore
asic_table.j2
docker-saiserver-mlnx.dep
docker-saiserver-mlnx.mk
docker-syncd-mlnx-rpc.dep
docker-syncd-mlnx-rpc.mk
docker-syncd-mlnx.dep
docker-syncd-mlnx.mk
fw.dep Remove support to Mellanox SPC4 ASIC (#13932) (#13957) 2023-02-23 22:22:35 +08:00
fw.mk Update SDK/FW to version 4.5.4206/4.5.4204 (#14164) 2023-03-19 20:50:49 +08:00
hw-management.dep
hw-management.mk [Mellanox] Advance hw-mgmt to v.7.0020.4104 (#13372) 2023-02-20 14:38:53 +08:00
install-pending-fw.dep
install-pending-fw.mk
install-pending-fw.py
issu-version.dep
issu-version.mk
libsaithrift-dev.dep
libsaithrift-dev.mk
mft.dep
mft.mk [Mellanox] Update MFT to 4.22.1-15 (#14133) 2023-03-19 18:33:57 +08:00
mlnx-ffb.dep
mlnx-ffb.mk
mlnx-ffb.sh
mlnx-fw-upgrade.j2 [Mellanox] Place FW binaries under platform directory instead of squashfs (#13837) 2023-03-08 13:50:18 +08:00
mlnx-onie-fw-update.dep
mlnx-onie-fw-update.mk
mlnx-onie-fw-update.sh
mlnx-platform-api.dep
mlnx-platform-api.mk Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API (#13847) (#13959) 2023-02-23 20:32:15 +08:00
mlnx-sai.dep
mlnx-sai.mk
mlnx-ssd-fw-update.dep
mlnx-ssd-fw-update.mk
mlnx-ssd-fw-update.sh
one-image.dep
one-image.mk
peripheral_table.j2
platform.conf
rules.dep
rules.mk
sdk.dep
sdk.mk Update SDK/FW to version 4.5.4206/4.5.4204 (#14164) 2023-03-19 20:50:49 +08:00
zero_profiles.j2