Skip to content

[xcvrd] Fix crashing due to missing fields of some module types#54

Merged
jleveque merged 1 commit intosonic-net:masterfrom
zzhiyuan:cablefix
Aug 20, 2019
Merged

[xcvrd] Fix crashing due to missing fields of some module types#54
jleveque merged 1 commit intosonic-net:masterfrom
zzhiyuan:cablefix

Conversation

@zzhiyuan
Copy link
Contributor

@zzhiyuan zzhiyuan commented Aug 19, 2019

  • Added default cable_type and cable_length.

From SFF-8436 regarding cable length fields:
"A value of zero means that the Module does not support [this mode] or that the length information must be determined from the Module technology."

It is possible that all cable length fields in eeprom are 0, and this would lead to xcvrd crashing due to fetching of this data. Fallback is added in this case.

Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

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

Can you please split this into two pull requests? One for the xcvrd fix, the other for making sonic_eeprom a symlink?

From SFF-8436 regarding cable length fields:
"A value of zero means that the Module does not support (this mode) or that the length information must be determined from the Module technology."

It is possible that all cable length fields in eeprom are 0, and this would lead to xcvrd crashing due to fetching of this data. Fallback is added in this case.
@zzhiyuan
Copy link
Contributor Author

Can you please split this into two pull requests? One for the xcvrd fix, the other for making sonic_eeprom a symlink?

Removed the symlink change in this PR. Will create another PR with that change.

Thanks

@jleveque jleveque changed the title Fix xcvrd crashing due to missing fields of some xcvr module types [xcvrd] Fix crashing due to missing fields of some module types Aug 20, 2019
@jleveque jleveque merged commit c011c73 into sonic-net:master Aug 20, 2019
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-platform-common that referenced this pull request Oct 25, 2024
Junchao-Mellanox pushed a commit to Junchao-Mellanox/sonic-platform-common that referenced this pull request May 7, 2025
… 202412 (sonic-net#54)

```<br>* ca4e2cc - (HEAD -> 202412) Merge branch '202411' of https://github.com/sonic-net/sonic-platform-common into 202412 (2025-03-07) [Sonic Automation]
* f679a67 - (origin/202411) Restore optoe page to default 0 for active cables (sonic-net#550) (2025-03-04) [mssonicbld]
* c735073 - [202411][cmis] Fix cmis.get_error_description speed for passive module (sonic-net#538) (2025-02-12) [Aryeh Feigin]
* b7e75d8 - Add 800G innolight PNs (sonic-net#540) (2025-02-07) [mssonicbld]<br>```
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.

2 participants