Skip to content

[xcvrd design] robust enhancement to xcvrd design#228

Merged
keboliu merged 4 commits intosonic-net:gh-pagesfrom
keboliu:xcvrd-hld
Aug 22, 2018
Merged

[xcvrd design] robust enhancement to xcvrd design#228
keboliu merged 4 commits intosonic-net:gh-pagesfrom
keboliu:xcvrd-hld

Conversation

@keboliu
Copy link
Copy Markdown
Collaborator

@keboliu keboliu commented Aug 8, 2018

a robust enhancement design for xcvrd on mlnx platform


It's possible that when received the plug in/out event, the transceiver eeprom is not ready for reading, so need to give another try if first reading failed.

#### 1.3.1 Transceiver plug in/out event implementation on mlnx platform ####
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In above section, "default value 0 means never timeout" is not good. A blocking function with timeout zero normally means no wait at all.

1. not able to get correct sfp change event from SDK
2. mlnx-sfpd itself failed for some reason.

mlnx-sfpd will periodically write a timestamp to STATE_DB to show the liveness. On above two failure cases mlnx-sfpd will stop update the timestamp and exit. Related info will be logged as error indication to user.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Using timestamp is implementation details, not part of the design. I encourage you investigate another alternative implementation https://redis.io/commands/expire

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@qiluo-msft will investigate, thanks.

@keboliu keboliu merged commit 42d609b into sonic-net:gh-pages Aug 22, 2018
@keboliu keboliu deleted the xcvrd-hld branch August 22, 2018 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants