-
Notifications
You must be signed in to change notification settings - Fork 547
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] Expose supported FEC modes to STABE_DB and check whether FEC mode is supported before setting it #2400
Conversation
@prgeor , can you please sign-off/merge? |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
@prgeor , would you please sign-off/merge? |
@stephenxs 84a32e2 this commit doesnot seem right. lets discuss. |
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.
84a32e2 why merge from maser?
…d check whether FEC mode is supported before setting it (sonic-net#2333)" (sonic-net#2396)" This reverts commit 6565b50.
Signed-off-by: Stephen Sun <[email protected]>
84a32e2
to
0767f27
Compare
/easycla |
@stephenxs this PR cannot be cherry picked cleanly to 202205 branch. Please raise separate PR. |
…FEC mode is supported before setting it (#2400) * Revert "Revert "[portsorch] Expose supported FEC modes to STABE_DB and check whether FEC mode is supported before setting it (#2333)" (#2396)" This reverts commit 6565b50. * Adjust the prototype of setPortFec Signed-off-by: Stephen Sun <[email protected]>
Why I did: PR: #2400 made change to pass <string> as argument to API setPortFecMode but did not updated the corresponding gbsyncd API call
Why I did: PR: #2400 made change to pass <string> as argument to API setPortFecMode but did not updated the corresponding gbsyncd API call
This is to
What I did
Expose supported FEC modes to
STATE_DB.PORT_TABLE|<port>.supported_fecs
.The orchagent calls
get_port_attribute
to get attributeSAI_PORT_ATTR_SUPPORTED_FEC_MODE
during initialization and then records it into internal data.STATE_DB
. Eg.rs,none
means onlyrs
andnone
is supported on the port.supported_fecs
before setting FEC mode on a port to theCONFIG_DB
N/A
will be exposed toSTATE_DB
get_port_attribute
returnsNot implemented
CONFIG_DB
.Why I did it
It is not supported to set FEC mode on some platforms. To avoid error, we need to expose the supported FEC list.
How I verified it
Manually test and mock test.
Details if related