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

[portsorch] add more attributes on port creation #50

Closed
wants to merge 2 commits into from

Conversation

stepanblyschak
Copy link
Owner

@stepanblyschak stepanblyschak commented Feb 10, 2025

What I did

Extend create_ports() supported attribute list with FEC, TPID, asymetric PFC configuration.

Why I did it

On platforms which start with no ports on fast-reboot sai_port_api->create_ports() is called as it is much more efficient to configure desired port attributes rather then have SAI driver to create default ports with default SAI attribute settings as required by SAI spec. Therefore, the most effective approach is to create ports and pass as much configuration at the time of port creation and not have to call sai_port_api->set_port_attribute for every attribute that needs to change its value.

How I verified it

Manual tests, unit tests, run fast-reboot test.

Details if related

@stepanblyschak stepanblyschak force-pushed the port-create-attrs branch 4 times, most recently from 34257d7 to 39f1342 Compare February 14, 2025 16:30
@stepanblyschak stepanblyschak changed the title Configure attributes on create [portsorch] add more attributes on port creation Feb 14, 2025
@stepanblyschak stepanblyschak force-pushed the port-create-attrs branch 7 times, most recently from cf1b967 to 8ec55bb Compare February 17, 2025 16:26
Signed-off-by: Stepan Blyschak <[email protected]>
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