[orchagent]: admin-disable port before setPortSerdesAttribute()#2831
[orchagent]: admin-disable port before setPortSerdesAttribute()#2831lguohan merged 13 commits intosonic-net:masterfrom
Conversation
…bute - toggle host_tx_ready flag to trigger CMIS reinit Signed-off-by: Aman Singhal <amans@cisco.com>
|
@prgeor @mihirpat1 for your perusal. |
|
@amnsinghal waiting for your UT test: Try this change in master without any other in-flight changes from Mihir's |
|
@amnsinghal @mihirpat1 we are seeing Xcvrd is missing the event host_tx_ready=False. Xcvrd is busy doing something else while OA sets the host_tx_ready = False and when finally OA sets the host_tx_ready=True, Xcvrd do get the notification but the filtering logic filters this event. Need to see a better way to notify change of media setting to Xcvrd. |
@prgeor Here is a summary of UT results without Mihir's diff:
|
|
@prgeor As discussed today, can you pls approve and merge this fix, if no further comments. Thanks. |
prgeor
left a comment
There was a problem hiding this comment.
@amnsinghal approved with minor comments
Co-authored-by: Prince George <45705344+prgeor@users.noreply.github.com>
Co-authored-by: Prince George <45705344+prgeor@users.noreply.github.com>
|
/AzurePipelines run |
|
Commenter does not have sufficient privileges for PR 2831 in repo sonic-net/sonic-swss |
|
@prsunny please help approve and merge. |
|
@amnsinghal re-submitted the test pipeline |
Thanks @prgeor |
|
@prgeor @prsunny Can you pls rerun Azure Pipeline, prev rerun failed in early build stage, apparently due to env/pipeline issue: https://dev.azure.com/mssonic/build/_build/results?buildId=323644&view=results. This changeset had passed all sanities yesterday. Thanks. |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 2831 in repo sonic-net/sonic-swss |
|
test are failing, also new code needs to add new unit test code. |
lguohan
left a comment
There was a problem hiding this comment.
test are failing, also new code needs to add new unit test code.
|
new code path must be protected by new unit test code, adding new logics without new code unit test is not a good practice. @prsunny |
@lguohan All tests had passed 2 days back before Update syslog in orchagent/portsorch.cpp , which was just a syslog rephrase, no functional change. |
|
@amnsinghal , can you please add unit test for coverage of this change? |
@prsunny @lguohan Added UT in mock_tests/portsorch_ut.cpp, kindly review and approve. |
|
@StormLiangMS - Can you please help with cherry-pick to 202305? |
|
@amnsinghal there is conflict, could you help to file separate PR for 202305? |
Double-commit sonic-net#2831 from master. Admin-disable port before applying media-based NPU serdes attributes from media_settings.json. Signed-off-by: Aman Singhal <amans@cisco.com>
…c-net#2831) What I did Admin-disable port before applying media-based NPU serdes attributes from media_settings.json. Why I did it This fix is needed along with xcvrd changes sonic-net#377. Maintain deterministic behavior of interface bring-up, by toggling host_tx_ready flag, which will trigger CMIS reinit for the module once NPU serdes params have been applied. How I verified it Validated media_settings being notified and applied on Cisco 8111 with subject changes combined with diffs from sonic-net#360, sonic-net#377 and #15453. Will update final results once sonic-net#377 is frozen. Details if related Proposal for xcvrd changes: sonic-net#356 Signed-off-by: Aman Singhal <amans@cisco.com>
…c-net#2831) What I did Admin-disable port before applying media-based NPU serdes attributes from media_settings.json. Why I did it This fix is needed along with xcvrd changes sonic-net#377. Maintain deterministic behavior of interface bring-up, by toggling host_tx_ready flag, which will trigger CMIS reinit for the module once NPU serdes params have been applied. How I verified it Validated media_settings being notified and applied on Cisco 8111 with subject changes combined with diffs from sonic-net#360, sonic-net#377 and #15453. Will update final results once sonic-net#377 is frozen. Details if related Proposal for xcvrd changes: sonic-net#356 Signed-off-by: Aman Singhal <amans@cisco.com>
What I did
Admin-disable port before applying media-based NPU serdes attributes from media_settings.json.
Why I did it
This fix is needed along with xcvrd changes #377.
Maintain deterministic behavior of interface bring-up, by toggling host_tx_ready flag, which will trigger CMIS reinit for the module once NPU serdes params have been applied.
How I verified it
Validated media_settings being notified and applied on Cisco 8111 with subject changes combined with diffs from #360, #377 and #15453.
Will update final results once #377 is frozen.
Details if related
Proposal for xcvrd changes: #356