From 768aae907f8720c99f2f007f2c40036751a0e04e Mon Sep 17 00:00:00 2001 From: Judson Wilson Date: Thu, 9 Jul 2026 09:11:21 +0300 Subject: [PATCH] nvidia-bluefield sentinel file management for sdk techsupport CT dump feature. This is part of the feature for adding DASH CT dumps to techsupport on NVIDIA Bluefield DPUs in SmartSwitch. All changes are in the platform-specific function config_syncd_nvidia_bluefield(). This new code helps manage the lifetime of the sentinel file, which, when exists, means that the feature is enabled. The sentinel file path is: /var/run/sonic-platform-nvidia-bluefield/sdk-techsupport-ct-dump.enabled At container startup, create the directory for the sentinel file, but also delete the file if it exists. This gives the setting the same lifetime as the SDN application. Signed-off-by: Judson Wilson --- syncd/scripts/syncd_init_common.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index ffa7a2cd46..113e427c6a 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -613,6 +613,13 @@ config_syncd_marvell_teralynx() config_syncd_nvidia_bluefield() { + # SDK techsupport CT dump sentinel path. Keep in sync across: + # sonic-utilities/config/plugins/nvidia_bluefield.py (SDK_TECHSUPPORT_CT_DUMP_SENTINEL) + # sonic-utilities/scripts/generate_dump (sdk_techsupport_ct_dump_sentinel) + # syncd/scripts/syncd_init_common.sh (config_syncd_nvidia_bluefield) + mkdir -p /var/run/sonic-platform-nvidia-bluefield + rm -f /var/run/sonic-platform-nvidia-bluefield/sdk-techsupport-ct-dump.enabled + # Read MAC addresses base_mac="$(echo $SYNCD_VARS | jq -r '.mac')" hwsku=$(sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["hwsku"]')