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

Add Port SI Configuration Per Speed #400

Merged
merged 41 commits into from
Dec 1, 2023
Merged

Conversation

tshalvi
Copy link
Contributor

@tshalvi tshalvi commented Oct 12, 2023

Description
I have updated the lookup in media_settings.json. With the updated parser, media_settings.json now supports different SI values for various lane speeds. Previously, get_media_settings_key() returned two types of keys: vendor_key and media_key. With these code changes, three keys are now returned: vendor_key, media_key, and lane_speed_key. The parser, implemented in get_media_settings_value(), intelligently utilizes the lane_speed_key only for JSON files that support per-speed port SI values. In cases where the JSON does not support this feature, the parser's functionality remains unchanged.

Motivation and Context
To achieve optimal configuration of their SerDes, some vendors wish to have the option to configure SerDes SI based on lane speeds. Therefore, we want to enhance the current ASIC configuration to provide support for configurations that take into account lane speed.

How Has This Been Tested?
I was running the existing unit tests to test these changes, and updated them if needed. They all passed.
Soon I will add new unit test to cover all my changes.

@tshalvi tshalvi changed the title Independent Module - platform-daemon code to support port SI configuration per speed Independent Module - Port SI Configuration Per Speed Oct 12, 2023
@tshalvi tshalvi marked this pull request as ready for review October 17, 2023 09:49
@tshalvi tshalvi changed the title Independent Module - Port SI Configuration Per Speed Add Port SI Configuration Per Speed Oct 17, 2023
@prgeor prgeor merged commit 502c0b6 into sonic-net:master Dec 1, 2023
5 checks passed
@mihirpat1
Copy link
Contributor

@yxieca - Can you please help in merging this to 202311?
MSFT ADO - 26116605

@prgeor
Copy link
Collaborator

prgeor commented Dec 8, 2023

@tshalvi @liat-grozovik please see cherry pick conflict so may need separate pr for 202311

@liushilongbuaa
Copy link
Contributor

@mihirpat1 , This PR is already in 202311 branch.
mssonicbld can't cherry pick again. So, it is marked as Conflict.

@keboliu
Copy link
Collaborator

keboliu commented Dec 11, 2023

@yxieca @liushilongbuaa would you please remove the tag "request for 202311 branch" as it is already included in 202311?

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.

8 participants