-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
base: master
Are you sure you want to change the base?
Conversation
geans-pin
commented
Jul 13, 2024
•
edited by adyeung
Loading
edited by adyeung
Module name | PR | State |
---|---|---|
sonic-buildimage | Common Config Update | |
sonic-sairedis | Modify syncd script to support yml |
@geans-pin
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.
|
Fix review comments :
|
|-- 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 |
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.
Should TD4, TH4 or TH5's common file be ***.config.yml file?
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.
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
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.
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
Geans
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.
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
Geans
@geans-pin sorry to miss your latest commit, I have several comments, could you please take a look? thanks