Skip to content
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

Silicon config support for Broadcom yml file and property overwrite #1744

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

geans-pin
Copy link
Contributor

@geans-pin geans-pin commented Jul 13, 2024

Copy link

linux-foundation-easycla bot commented Jul 13, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@ZhaohuiS
Copy link

@geans-pin
After last meeting, we have the following comments for the new design:

  • Add flag/option to allow vendor's config.bcm to override common (current behavior), but it could support to common config.bcm to override vendor's config.bcm to give better control.

First, we extract the common attributes from platform config.bcm. If it's a common config for all HWSKUs of one type of ASIC, we have to remove it from platform specific config.bcm and only keep it in common config.bcm,

It could give us a better control that we can just modify one place to sync one config change for all related HWSKUs, don't have to update platform specific config.bcm one by one.

Second, since this a huge change for config.bcm which is critical file for SAI, could you please cover how to do unit test in this design doc? Unit test is quite important to make sure config.bcm is consistent after this feature.

  • could you please consider .j2 format for common config.bcm? Support to add the logic for some specific HwSku or other scenarios?

@geans-pin
Copy link
Contributor Author

geans-pin commented Jul 20, 2024

Fix review comments :

  1. Add #section to control property level overwrite in common config
  2. ADD mode UT cases

|-- x86_64-broadcom_b97 -- broadcom-sonic-th2.config.bcm
|-- x86_64-broadcom_b98 -- broadcom-sonic-th3.config.bcm
|-- x86_64-broadcom_b99 -- broadcom-sonic-th4.config.bcm
|-- x86_64-broadcom_f90 -- broadcom-sonic-th5.config.bcm

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should TD4, TH4 or TH5's common file be ***.config.yml file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine to use the same naming in common file. Only the TH5/TH4/TD4 targeted platform and merged config is yml based.

Geans

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZhaohuiS,

I've committed the changes for HLD review comment. You can check and verify. Fox example as the following,
the properties in the [Overwrite Section] will overwrite the platform config.

[Overwrite Section]
l3_mem_entries=16384
lpm_scaling_enable=0
l3_alpm_enable=0

sonic-net/sonic-sairedis#1411

Geans

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZhaohuiS,

I've committed the changes for HLD review comment. You can check and verify. Fox example as the following, the properties in the [Overwrite Section] will overwrite the platform config.

[Overwrite Section] l3_mem_entries=16384 lpm_scaling_enable=0 l3_alpm_enable=0

sonic-net/sonic-sairedis#1411

Geans

@geans-pin sorry to miss your latest commit, I have several comments, could you please take a look? thanks

@geans-pin geans-pin changed the title Update HLD to support YML based config Update HLD to support YML based config and Property level overwrite Aug 23, 2024
@adyeung adyeung changed the title Update HLD to support YML based config and Property level overwrite Silicon config support for Broadcom yml file and property overwrite Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants