Auto-use enablePerPortCounterDiscovery syncd arg on Broadcom ASICs - #2001
Conversation
|
/azp run |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Overall the approach is sound, but a few points worth addressing: 1. Placement — If the intent is genuinely a multi-ASIC-expandable table via one 2. No explanatory comment. Every other non-obvious arg here has at least a hint. A bare Suggested: # Enable per-port counter capability discovery (see sonic-buildimage#28460, #1774).
# Broadcom platforms can have per-port counter support differences.
CMD_ARGS+=" -G"3. Boot-type ordering. This runs before 4. Hard dependency on #2000. |
This is the intention, however it is currently unknown which platform the issue is affecting, therefore I do not know what other additional platforms to add here.
Ack, will add.
This is intentional. Warm and fast reboot will need to run this in order for counters to be setup properly in those scenarios as well. Will add this testing info to the PR description.
Yes. |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Auto-use the --enablePerPortCounterDiscovery argument when a Broadcom asic type is detected in syncd_init_common.sh Signed-off-by: Justin Wong <jvwong@arista.com>
Signed-off-by: Justin Wong <jvwong@arista.com>
4e54e3b to
91eb8de
Compare
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
Reminder this needs backport to 202605. |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
This PR has backport request label(s) for branch(es): 202605, but is missing required test information. Please make sure you tick the tested branch(es) in the Tested branch section and provide test evidence (e.g., 202605: <test result>) in the Test result section as well in your PR description. ---Powered by SONiC BuildBot
|
|
Hi — this PR is flagged for cherry-pick to the 202605 branch (
This helps us track readiness and ensures we don't cherry-pick untested changes. Thanks! Comment by @vaibhavhd via automated tooling |
Description of PR
Summary:
Auto-use the
enablePerPortCounterDiscoverysyncdarg for Broadcom ASICs in an easily expandable way such that other ASIC types can be easily added to use this behavior.This is part 2 of 2 fix in addressing sonic-net/sonic-buildimage#28460. There are two fix methods under consideration, this PR outlines the method of deciding code path via the ASIC type.
This change requires the changes in #2000 to work.
Fixes -
Partially Fixes: sonic-net/sonic-buildimage#28460
Type of change
Approach
What is the motivation for this PR?
In #1774 , a new counter support discovery method is introduced for being able to read counter support for platforms where different ports can have different capabilities.
The method worked well for some platforms, not so much for some others.
This change auto-uses the new
syncdargenablePerPortCounterDiscovery(introduced in #2000) when thebroadcomASIC type is detected insyncd_init_common.sh.Work item tracking
How did you do it?
Add logic in
syncd_init_common.shto auto apply thesyncdarg whenbroadcomASIC type is detected.How did you verify/test it?
syncdunit tests pass on master and on 202605.On physical hardware, an image is built with the changes cherry-picked to 202605 and tests are ran in 2 scenarios:
syncd_init_common.shhotpatched to filter on another asic type.In both scenarios,
syncdenters the expected code path.Additionally, a subset of counters-focused
sonic-mgmttests are ran. There is no test result difference compared to tests done without this change.Tests were ran on
Arista-7260CX3-D108C8andArista-7060X6-64PE-B-C512S2.The list of
sonic-mgmttests ran:To ensure no warm and fast reboot issues from any potential time increase from
syncd, some reboot-related tests are also ran. The followingsonic-mgmttests pass with this change casted, tested onArista-7260CX3-D108C8andArista-7060CX-32S-C32:Any platform specific information?
Broadcom
Documentation