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

Fix the Fec Mode Setting of gbsyncd #2430

Merged
merged 1 commit into from
Aug 30, 2022
Merged

Fix the Fec Mode Setting of gbsyncd #2430

merged 1 commit into from
Aug 30, 2022

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Aug 25, 2022

Why I did:

PR: #2400 made change to pass <string> as argument to API setPortFecMode but did not updated the corresponding gbsyncd API call which is making gbsyncd to fail with below errors

Aug 25 19:21:54.446591 str2-xxxx-lc1-3 ERR swss1#orchagent: :- meta_generic_validation_set: SAI_PORT_ATTR_FEC_MODE:SAI_ATTR_VALUE_TYPE_INT32 is enum, but value 1989570112 not found on allowed values list
Aug 25 19:21:54.446591 str2-xxxx-lc1-3 ERR swss1#orchagent: :- setGearboxPortAttr: BOX: Failed to set Ethernet13 port attribute 51
Aug 25 19:21:54.446605 str2-xxxx-lc1-3 ERR swss1#orchagent: :- handleSaiSetStatus: Encountered failure in set operation, exiting orchagent, SAI API: SAI_API_PORT, status: SAI_STATUS_INVALID_PARAMETER

How I fixed:
Passed the expected value in pointer to integer format.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@abdosi
Copy link
Contributor Author

abdosi commented Aug 25, 2022

cc @anamehra

@abdosi
Copy link
Contributor Author

abdosi commented Aug 25, 2022

@stephenxs please review.

@abdosi abdosi requested a review from judyjoseph August 25, 2022 19:45
@abdosi
Copy link
Contributor Author

abdosi commented Aug 25, 2022

@gechiang for viz as issue is there on 202205 branch also

Copy link
Contributor

@gechiang gechiang left a comment

Choose a reason for hiding this comment

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

LGTM

@jimmyzhai
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abdosi
Copy link
Contributor Author

abdosi commented Aug 29, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abdosi
Copy link
Contributor Author

abdosi commented Aug 30, 2022

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abdosi
Copy link
Contributor Author

abdosi commented Aug 30, 2022

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abdosi abdosi merged commit f52a7b1 into sonic-net:master Aug 30, 2022
@abdosi abdosi deleted the fec branch August 30, 2022 21:35
yxieca pushed a commit that referenced this pull request Sep 1, 2022
Why I did:

PR: #2400 made change to pass <string> as argument to API setPortFecMode but did not updated the corresponding gbsyncd API call
dprital added a commit to dprital/sonic-buildimage that referenced this pull request Sep 1, 2022
Update sonic-swss submodule pointer to include the following:
* [BFD]Clean up state_db BFD entries on swss restart ([sonic-net#2434](sonic-net/sonic-swss#2434))
* Fix the Fec Mode Setting of gbsyncd ([sonic-net#2430](sonic-net/sonic-swss#2430))
* [neighsyncd] Enabling ipv4 link local entries for non-dualtor ([sonic-net#2427](sonic-net/sonic-swss#2427))
* tlm_teamd: Filter portchannel subinterface events from STATE_DB LAG_TABLE ([sonic-net#2408](sonic-net/sonic-swss#2408))
* PFCWD recovery changes using DLR_INIT ([sonic-net#2316](sonic-net/sonic-swss#2316))
* Dynamic port configuration - add port buffer cfg to the port ref counter ([sonic-net#2194](sonic-net/sonic-swss#2194))

Signed-off-by: dprital <drorp@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants