-
Notifications
You must be signed in to change notification settings - Fork 542
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
Add a check if OID exists before setting Host Tx Ready Signal Enable #3232
Add a check if OID exists before setting Host Tx Ready Signal Enable #3232
Conversation
@prgeor |
@noaOrMlnx Why OA is acting upon deleted ports? |
This is a cherry-pick of #3232 What I did I added a query before setting host tx ready - must check that Oid exists before setting attribute to SAI.
@prgeor , can you please approve? |
@prgeor OA is acting upon port deletion, if a module was plugged out, and its entry was deleted from TRANSCEIVER_INFO table is State DB, so it could set HostTxReady enable to false. |
} | ||
|
||
SWSS_LOG_NOTICE("Could not set SAI_PORT_ATTR_HOST_TX_SIGNAL_ENABLE - OID does not exist 0x%" PRIx64, port.m_port_id); |
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.
@noaOrMlnx can we print the port name in the notice message?
Please fix the conflict to 202311 branch. |
…onic-net#3232) - What I did I added a query before setting host tx ready - must check that Oid exists before setting attribute to SAI. - Why I did it When we do dynamic port breakout to a Fw-control port, portsorch receives a notification that something was deleted in TRANSCEIVER_INFO table from State DB, and tries to set HOST_TX_READY_SIGNAL_ENABLE attribute to false for the deleted OID. The issue is the Oid is already deleted and we receive an error from SAI. - How I verified it Run DPB on the switch
Cherry-pick PR to 202405: #3243 |
…3232) - What I did I added a query before setting host tx ready - must check that Oid exists before setting attribute to SAI. - Why I did it When we do dynamic port breakout to a Fw-control port, portsorch receives a notification that something was deleted in TRANSCEIVER_INFO table from State DB, and tries to set HOST_TX_READY_SIGNAL_ENABLE attribute to false for the deleted OID. The issue is the Oid is already deleted and we receive an error from SAI. - How I verified it Run DPB on the switch
@noaOrMlnx can you help creating separate PR for 202311 branch? Thanks! |
What I did
I added a query before setting host tx ready - must check that Oid exists before setting attribute to SAI.
Why I did it
When we do dynamic port breakout to a Fw-control port, portsorch receives a notification that something was deleted in TRANSCEIVER_INFO table from State DB, and tries to set HOST_TX_READY_SIGNAL_ENABLE attribute to false for the deleted OID.
The issue is the Oid is already deleted and we receive an error from SAI.
How I verified it
Run DPB on the switch
Details if related