sonic-buildimage/platform/mellanox
Junchao-Mellanox 7368df7839
[Mellanox] Enable CMIS host management (#16846) (#17684)
- Why I did it
Enable CMIS host management for Mellanox devices which are expected to support the feature

- How I did it
new thread in a new file and changing logic in platform code in chassis.py which is calling this thread from get_change_event()
this thread in the new file handles the state machine per port.
first the static detection takes place once the thread is up (during switch bootup sequence), until final decision if it's FW control or SW control module.
After it ends, the dynamic detection takes place, listening to changes in the sysfs fds, per port,
so it will be able to detect plug in or out events of a cable.

- How to verify it
Enhanced unit tests
run sonic mgmt on Nvidia SN4700 with CMIS host management enabled

Co-authored-by: dbarashinvd <105214075+dbarashinvd@users.noreply.github.com>
2024-01-05 12:07:30 -08:00
..
docker-saiserver-mlnx [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
docker-syncd-mlnx [Mellanox] Add Copyright Headers for missing files (#15136) 2023-05-25 07:55:44 +03:00
docker-syncd-mlnx-rpc Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
hw-management [Mellanox] Support running hw-management service on MSN4700 emulation platform (#16584) 2023-11-19 11:03:46 +02:00
integration-scripts [Mellanox] Enhance the processing of Kconfig in the hw-mgmt integration (#16752) 2023-10-18 19:32:59 +03:00
iproute2 [Mellanox] Remove iproute2 SDK patches from SONiC tree and consume them from SDK github (#15062) 2023-06-13 15:17:52 +03:00
issu-version Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
mft [mellanox]: Disable MFT bash autocompletion. (#17543) 2023-12-21 09:45:42 -08:00
mft-fwtrace-cfg [Mellanox] Remove mlxtrace support for SPC4 (#16373) 2023-09-04 10:53:20 +03:00
mlnx-platform-api [Mellanox] Enable CMIS host management (#16846) (#17684) 2024-01-05 12:07:30 -08:00
mlnx-sai [Mellanox] Remove unnecessary file manipulation in the SAI Make file (#15993) 2023-08-03 13:39:27 +03:00
non-upstream-patches [Mellanox] Enhance the processing of Kconfig in the hw-mgmt integration (#16752) 2023-10-18 19:32:59 +03:00
nv-syncd-shared [nvidia] make sure shared storage with syncd is cleared on restarts (#14547) 2023-06-28 15:26:49 -07:00
sdk-src [Mellanox] Update SDK/FW/SAI to 4.6.1020/2012.1020/SAIBuild2305.25.0.3 (#16096) 2023-08-15 15:32:52 +03:00
.gitignore [Mellanox] Update SAI build procedure (#15728) 2023-07-15 01:03:33 +03:00
asic_table.j2 [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
docker-saiserver-mlnx.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
docker-saiserver-mlnx.mk Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
docker-syncd-mlnx-rpc.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
docker-syncd-mlnx-rpc.mk Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
docker-syncd-mlnx.dep [build][asan] make dpkg cache asan-aware (#10750) 2022-05-31 11:15:44 +03:00
docker-syncd-mlnx.mk [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
fw.dep [Mellanox] Update SDK/FW/SAI to 4.6.1020/2012.1020/SAIBuild2305.25.0.3 (#16096) 2023-08-15 15:32:52 +03:00
fw.mk [Mellanox] Update SDK/FW to 4.6.1062/2012.1062 Update SDK/FW/SAI to 4.6.1062/2012.1062/SAIBuild2211.25.1.4 (#16478) 2023-09-07 14:05:33 +03:00
hw-management.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
hw-management.mk [Mellanox] Update HW-MGMT package to new version V.7.0030.1011 (#16239) 2023-09-06 11:32:08 +03:00
install-pending-fw.dep [Mellanox] Modified Platform API to support all firmware updates in single boot (#9608) 2022-01-24 00:56:38 -08:00
install-pending-fw.mk [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 (#10289) 2022-03-23 13:19:25 +02:00
install-pending-fw.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 (#10289) 2022-03-23 13:19:25 +02:00
integration-scripts.mk [Mellanox] Enhance the processing of Kconfig in the hw-mgmt integration (#16752) 2023-10-18 19:32:59 +03:00
iproute2.dep [Mellanox] Replace iproute2 supplied by SDK to iproute2 downloaded from Debian repository (#14726) 2023-04-30 12:30:09 +03:00
iproute2.mk [Mellanox] Replace iproute2 supplied by SDK to iproute2 downloaded from Debian repository (#14726) 2023-04-30 12:30:09 +03:00
issu-version.dep Fix cache related mellanox bullseye build failures (#9234) 2021-11-16 14:49:47 -08:00
issu-version.mk Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
libsaithrift-dev.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
libsaithrift-dev.mk [Mellanox] Add arm64 architecture support to mellanox platform (#11342) 2022-07-13 16:21:33 +03:00
mft-fwtrace-cfg.dep [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
mft-fwtrace-cfg.mk [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
mft.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mft.mk [Mellanox] Update MFT to newer version 4.25.0-62 (#16149) 2023-08-15 09:49:19 +03:00
mlnx-ffb.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-ffb.mk [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
mlnx-ffb.sh [mlnx-ffb.sh] Update issu-version location (#14925) 2023-06-15 15:14:52 -07:00
mlnx-fw-upgrade.j2 [mlnx-fw-upgrade] Add FW reactivation in case 2 FW upgrades were done without reboot (#17092) 2023-11-19 11:01:31 +02:00
mlnx-onie-fw-update.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-onie-fw-update.mk [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
mlnx-onie-fw-update.sh [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 (#10289) 2022-03-23 13:19:25 +02:00
mlnx-platform-api.dep [Bug][Build]: Fix the mlnx-platform-api dpkg cache config error (#9705) 2022-01-09 09:21:59 +08:00
mlnx-platform-api.mk Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API (#13847) 2023-02-20 15:24:26 +02:00
mlnx-sai.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-sai.mk [Mellanox] Update SDK/FW to 4.6.1062/2012.1062 Update SDK/FW/SAI to 4.6.1062/2012.1062/SAIBuild2211.25.1.4 (#16478) 2023-09-07 14:05:33 +03:00
mlnx-ssd-fw-update.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-ssd-fw-update.mk [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
mlnx-ssd-fw-update.sh [Mellanox] Enhance Platform API to support SN2201 - RJ45 ports and new components mgmt. (#10377) 2022-06-20 19:12:20 -07:00
one-image.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
one-image.mk [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
peripheral_table.j2 [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
platform.conf one image implementation (#215) 2017-01-29 11:33:33 -08:00
rules.dep [Mellanox] Modified Platform API to support all firmware updates in single boot (#9608) 2022-01-24 00:56:38 -08:00
rules.mk [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
sdk.dep [Mellanox] Update SDK/FW/SAI to 4.6.1020/2012.1020/SAIBuild2305.25.0.3 (#16096) 2023-08-15 15:32:52 +03:00
sdk.mk [Mellanox] Update SDK/FW to 4.6.1062/2012.1062 Update SDK/FW/SAI to 4.6.1062/2012.1062/SAIBuild2211.25.1.4 (#16478) 2023-09-07 14:05:33 +03:00
zero_profiles.j2 [Mellanox] Add NVIDIA copyright header for NVIDIA added files (#12130) 2022-10-02 11:34:24 +03:00