Skip to content

Commit

Permalink
[mlnx] enable SDK sniffer on start of syncd container
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Yurkiv <[email protected]>
  • Loading branch information
ayurkiv-nvda committed Mar 27, 2024
1 parent 594944d commit f3029e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ fi
# Create a folder for SAI failure dump files
mkdir -p /var/log/sai_failure_dump/

# Create a folder for SDK/SAI dumps
mkdir -p /var/log/mellanox/sniffer

# Use bulk APIs in SAI
# currently disabled since most vendors don't support that yet
# CMD_ARGS+=" -l"
Expand Down Expand Up @@ -249,6 +252,10 @@ config_syncd_mlnx()
if [[ -f /tmp/sai_extra.profile ]]; then
cat /tmp/sai_extra.profile >> /tmp/sai.profile
fi

# Enable SDK sniffer
export SX_SNIFFER_ENABLE=1
export SX_SNIFFER_TARGET=$(echo "/var/log/mellanox/sniffer/sx_sdk_sniffer_$(date +\%Y\%m\%d\%H\%M\%S).pcap")
}

config_syncd_centec()
Expand Down

0 comments on commit f3029e0

Please sign in to comment.