Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,16 @@ if [ "$SUPPORTING_BULK_COUNTER_GROUPS" != "" ]; then
CMD_ARGS+=" -B $SUPPORTING_BULK_COUNTER_GROUPS"
fi

# Enable per-port counter capability discovery (see sonic-buildimage#28460, #1774).
# Add ASIC types that needs this feature here
case "$SONIC_ASIC_TYPE" in
broadcom)
CMD_ARGS+=" -G"
;;
esac
ENABLE_PER_PORT_COUNTER_DISCOVERY=$(echo $SYNCD_VARS | jq -r 'if has("enable_per_port_counter_discovery") then .enable_per_port_counter_discovery else "" end')
if [ "$ENABLE_PER_PORT_COUNTER_DISCOVERY" == "true" ]; then
CMD_ARGS+=" -G"
elif [ -z "$ENABLE_PER_PORT_COUNTER_DISCOVERY" ]; then
case "$SONIC_ASIC_TYPE" in
broadcom)
CMD_ARGS+=" -G"
;;
esac
fi

case "$(cat /proc/cmdline)" in
*SONIC_BOOT_TYPE=fastfast*)
Expand Down
Loading