-
Notifications
You must be signed in to change notification settings - Fork 150
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
Update active application selected code in transceiver_info table aft… #381
Conversation
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.
The CLI will still display stale values for "Host Lane Count" and "Media Lane Count" after setting the application. Are you planning to address this as well?
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.
Wondering if we should create a wrapper to the below function and update the TRANSCEIVER_INFO table accordingly?
https://github.com/sonic-net/sonic-platform-daemons/blob/81048cd1fb63da9fdca567aa863c7d1d43156ed3/sonic-xcvrd/xcvrd/xcvrd.py#L1587C36-L1587C51
Yes, I have now also update "Host Lane Count" and "Media Lane Count". |
I think it would be better not to update TRANSCEIVER_INFO table until data path is activated. |
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.
@MichaelWangSmci can you also take care of the case where user executes 'config interface shutdown' in which case module datapaths remain deactivated?
After 'config interface shutdown' module datapaths state are 'DataPathInitialized' because Tx are disabled. |
@MichaelWangSmci yes not updated, but won't it confuse the user ? if the datapath is no
@MichaelWangSmci right. |
@yxieca @StormLiangMS please help cherry pick this accordingly. |
ADO - 21982389 |
#381) * Update active application selected code in transceiver_info table after CMIS config finished successfully * code rearrangement * add tests for post_port_active_apsel_to_db() * also update host_lane_count and media_lane_count
#381) * Update active application selected code in transceiver_info table after CMIS config finished successfully * code rearrangement * add tests for post_port_active_apsel_to_db() * also update host_lane_count and media_lane_count
…er CMIS config finished successfully
Description
In xcvrd, after cmis manager task has done update CMIS application successfully, the transceiver_info table should also be updated with the new active_apsel_hostlaneN.
Motivation and Context
show interfaces transceiver eeprom
should gives the correct "Active application selected code assigned to host lane N".How Has This Been Tested?
Tested with an Intel DR4 cable in a 400G HwSKU.
This cable has default active application selected codes 2 (for 100G).
CMIS manager task will update the application to 1 (for 400G), and
show interfaces transceiver eeprom
can gives the expected "Active application selected code assigned to host lane N: 1" with this fix.Previous command output:
New command output
Additional Information (Optional)