Skip to content

Commit dd395e3

Browse files
authored
[Mellanox] Enabled SDK API recording by default (sonic-net#19925)
- Why I did it SDK sniffer will record the RPC calls from the SDK user API library to the sx_sdk task into a .pcap file. This .pcap file can be replayed afterward to get the exact same state on SDK and FW to reproduce and investigate issues. SDK added cyclic mode of API sniffer, and previously, users could use config platform mlnx sniffer enable/disable to control the feature, now they must manually change the content of saiprofile. The old CLI entry point will be removed. - How I did it Added relevant SAI keys in sai-common.profile removed deprecated CLI in sonic-utilities sonic-net/sonic-utilities#3491 - How to verify it Check the pcap file under /var/log/sdk_dbg Signed-off-by: Yuanzhe, Liu <yualiu@nvidia.com>
1 parent e5449f2 commit dd395e3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps
22
SAI_DUMP_STORE_AMOUNT=10
33
SAI_ASYNC_ROUTING_ENABLED=1
4+
SAI_KEY_SDK_SNIFFER_MODE=cyclic
5+
SAI_KEY_SDK_SNIFFER_LOG_NUM=10
6+
SAI_KEY_SDK_SNIFFER_LOG_MAX_SIZE=314572800
7+
SAI_KEY_SDK_SNIFFER_WRITE_INTERVAL=1000

0 commit comments

Comments
 (0)