sonic-buildimage/platform
Junchao-Mellanox 389b279ba9
[Mellanox] set select timeout to no more than 1 sec to make sure fast shutdown (#13611)
- Why I did it
Commit sonic-net/sonic-platform-daemons@153ea47 changed SfpStateUpdateTask from Process to Thread. In this commit, it raises an exception in SfpStateUpdateTask to make shutdown flow fast. But it does not work on Nvidia platform as Nvidia platform is passing timeout parameter of get_change_event to select. Linux select function can not be interrupted by a Python exception. There is no such issue on Nvidia platform before that commit. However, in order to comply with the commit and make shutdown flow fast, we decided to change Nvidia platform API implementation.

To fix issue #13591.

- How I did it
The select call in get_change_event should use no more than 1 second as timeout parameter.
Outside the select call, add a while loop to make sure timeout parameter of get_change_event work as expected

- How to verify it
Manual test
2023-02-14 08:26:25 +02:00
..
barefoot [BFN] Update psu.py to process sigterm signal (#13350) 2023-02-06 09:52:28 -08:00
broadcom [Nokia][sonic-platform] Update sonic-platform submodule for Nokia IXR7250E platform (#13437) 2023-01-24 11:40:59 -08:00
cavium [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
centec [Centec] Upgrade Centec platform containers(syncd/saiserver/syncd-rpc) to bullseye (#13375) 2023-02-06 09:26:35 -08:00
centec-arm64 [Centec] Upgrade Centec platform containers(syncd/saiserver/syncd-rpc) to bullseye (#13375) 2023-02-06 09:26:35 -08:00
checkout Platform/cisco-8000 module for sonic-buildimage (#8172) 2021-08-06 09:11:54 +08:00
components [gearbox] use credo sai v0.8.2 (#13565) 2023-02-01 23:38:17 -08:00
generic [dockers] Rename 'docker-snmp-sv2' to 'docker-snmp' (#4699) 2020-06-11 16:04:23 -07:00
innovium [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
marvell [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
marvell-arm64 [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
marvell-armhf [armhf][Nokia-7215]High CPU caused by entropy.py (#13694) 2023-02-09 13:29:06 -08:00
mellanox [Mellanox] set select timeout to no more than 1 sec to make sure fast shutdown (#13611) 2023-02-14 08:26:25 +02:00
nephos [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
p4 [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
pddf [pddf]: Adding support for FPGAPCIe in PDDF (#13476) 2023-02-06 13:48:31 -08:00
s3ip-sysfs The CPLD and FPGA driver framework module complies with s3ip sysfs specification (#12891) 2022-12-16 22:05:53 +08:00
template Mount directory warmboot in docker gbsyncd (#11852) 2022-08-26 22:00:45 +08:00
vs [FRR] Switch to dplane_fpm_nl plugin instead of fpm (#12852) 2023-02-06 09:38:39 -08:00