Skip to content

[xcvrd] Extend xcvrd with SFP error event handling#52

Merged
jleveque merged 2 commits intosonic-net:masterfrom
keboliu:sfp-err-event-handling
Apr 16, 2020
Merged

[xcvrd] Extend xcvrd with SFP error event handling#52
jleveque merged 2 commits intosonic-net:masterfrom
keboliu:sfp-err-event-handling

Conversation

@keboliu
Copy link
Collaborator

@keboliu keboliu commented Apr 3, 2020

Add SFP event handling logic to XCVRD, the main purpose is to stop accessing SFP EEPROM when some error event raised from SFP and which will block the EEPROM accessing. Design refer to sonic-net/SONiC#586

  1. When receive the error event on some SFP, the related ports will be added to a new table which is to store the ports that on top of the error SFP, xcvrd will remove the DOM table and stop to update the DOM until SFP recovered from the error. This is done by checking the new table before reading the DOM, if ports in error status, DOM update will be skipped.

  2. A plug in event received on the error SFP will be considered as this SFP is recovered from error status.

This PR has a dependency on sonic-net/sonic-buildimage#4365 and sonic-net/sonic-platform-common#80

@keboliu
Copy link
Collaborator Author

keboliu commented Apr 16, 2020

@jleveque can we merge this one and also sonic-net/sonic-platform-common#80 ?

@jleveque jleveque merged commit 238fc06 into sonic-net:master Apr 16, 2020
abdosi pushed a commit that referenced this pull request Apr 19, 2020
* extend xcvrd with SFP error event handling
* change sfp error table to status table, store plug in/out and error status
using enum for sfp error code
@jleveque jleveque added the xcvrd label Jul 10, 2020
@keboliu keboliu deleted the sfp-err-event-handling branch January 2, 2021 01:36
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