Skip to content

Commit

Permalink
[Mellanox] Enabled SDK API recording by default (sonic-net#19925)
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
yuazhe authored Oct 22, 2024
1 parent e5449f2 commit dd395e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/mellanox/docker-syncd-mlnx/sai-common.profile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps
SAI_DUMP_STORE_AMOUNT=10
SAI_ASYNC_ROUTING_ENABLED=1
SAI_KEY_SDK_SNIFFER_MODE=cyclic
SAI_KEY_SDK_SNIFFER_LOG_NUM=10
SAI_KEY_SDK_SNIFFER_LOG_MAX_SIZE=314572800
SAI_KEY_SDK_SNIFFER_WRITE_INTERVAL=1000

0 comments on commit dd395e3

Please sign in to comment.