-
Notifications
You must be signed in to change notification settings - Fork 1.8k
BROADCOM_LEGACY_SAI_COMPAT: Fix sai_get_stats_ext crash on TH1 legacy image #26014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,7 @@ SAI_INIT_CONFIG_FILE=/usr/share/sonic/platform/th-a7060-cx32s-flex-all.config.bc | |
| # BROADCOM_LEGACY_SAI_COMPAT: TH1 (BCM56960) has no streaming telemetry platform driver; | ||
| # sai_query_stats_st_capability crashes in brcm_sai_st_pd_ctr_cap_list_get. | ||
| SAI_STATS_ST_CAPABILITY_SUPPORTED=0 | ||
|
|
||
| # BROADCOM_LEGACY_SAI_COMPAT: sai_get_stats_ext is not supported for switch objects on TH1 (BCM56960). | ||
| # Setting to 0 disables use_sai_stats_ext in FlexCounter for COUNTER_TYPE_SWITCH. | ||
| SAI_STATS_EXT_SWITCH_SUPPORTED=0 | ||
|
Comment on lines
+6
to
+8
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description focuses on disabling
sai_get_stats_extfor switch objects, but this change also introducesSAI_STATS_ST_CAPABILITY_SUPPORTED=0(streaming telemetry stats capability) in the same profile. Please update the PR description (and/or title) to explicitly mention this additional behavior, or split it into a separate PR if it’s intended to land independently.