-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[sflow]: Unblocked psample_*() function calls related to BRCM specific procfs for sflow feature's working in ESW platforms #12918
Conversation
…or proper functionality of sflow feature *Replaced BRCM SDK's psample support flag(PSAMPLE_SUPPORT) with linux kernel psample module support config flag(CONFIG_PSAMPLE) in saibcm-modules. *Replaced BUILD_PSAMPLE conditioanl check with CONFIG_PSAMPLE to build psample callback library(psample-cb.o), only if psample config is enabled in linux kernel. *Cleaned up PSAMPLE_SUPPORT related commented code. Signed-off-by: haris@celestica.com
|
@adyeung , can you find someone review this pr? |
@michaelli10 already engaged with hari-selvam in the other thread @michaelli10 pls help review the PR |
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.
Discussed changes previously with Hari and tested with and and without CONFIG_PSAMPLE
…or proper functionality of sflow feature (sonic-net#12918) *Replaced BRCM SDK's psample support flag(PSAMPLE_SUPPORT) with linux kernel psample module support config flag(CONFIG_PSAMPLE) in saibcm-modules. *Replaced BUILD_PSAMPLE conditioanl check with CONFIG_PSAMPLE to build psample callback library(psample-cb.o), only if psample config is enabled in linux kernel. *Cleaned up PSAMPLE_SUPPORT related commented code. Signed-off-by: haris@celestica.com Signed-off-by: haris@celestica.com
Cherry-pick PR to 202205: #13001 |
…or proper functionality of sflow feature (sonic-net#12918) *Replaced BRCM SDK's psample support flag(PSAMPLE_SUPPORT) with linux kernel psample module support config flag(CONFIG_PSAMPLE) in saibcm-modules. *Replaced BUILD_PSAMPLE conditioanl check with CONFIG_PSAMPLE to build psample callback library(psample-cb.o), only if psample config is enabled in linux kernel. *Cleaned up PSAMPLE_SUPPORT related commented code. Signed-off-by: haris@celestica.com Signed-off-by: haris@celestica.com
Cherry-pick PR to 202211: #13691 |
Fixed sflow feature code breakage in BRCM ESW platform.
*Replaced BRCM SDK's psample support flag(PSAMPLE_SUPPORT) with linux kernel psample module support config flag(CONFIG_PSAMPLE) in saibcm-modules.
*Replaced BUILD_PSAMPLE conditioanl check with CONFIG_PSAMPLE to build psample callback library(psample-cb.o), only if psample config is enabled in linux kernel.
*Cleaned up PSAMPLE_SUPPORT related commented code.
Signed-off-by: haris@celestica.com
Why I did it
SFLOW configuration(config sflow enable) causes swss docker to exit in Broadcom Td3-X2 family chipset platform. Reason is as part of the sflow configuration, Broadcom tries to open the file /proc/bcm/knet_cb/psample/rate and it got failed since the file doesn't exists. psample-cb.o object file is responsible for loading '/proc/bcm/knet-cb/psample/rate' file. And this object file is not included due to BUILD_PSAMPLE=1 flag is removed in the recent commit.
How I did it
Unblocked psample_*() function calls in BRCM ESW platforms for proper functionality of sflow feature.
*Replaced BRCM SDK's psample support flag(PSAMPLE_SUPPORT) with linux kernel psample module support config flag(CONFIG_PSAMPLE) in saibcm-modules.
*Replaced BUILD_PSAMPLE conditioanl check with CONFIG_PSAMPLE to build psample callback library(psample-cb.o), only if psample config is enabled in linux kernel.
*Cleaned up PSAMPLE_SUPPORT related commented code.
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
Replaced BRCM SDK psample support flag with kernel psample config flag to unblock the creation of BRCM specific procfs for sflow feature's working in ESW platforms. It fixes Issue#12810
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
[saibcm-modules][sflow]
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)