Skip to content

[Mellanox] support get_transceiver_threshold_info - #3777

Merged
jleveque merged 4 commits into
sonic-net:masterfrom
stephenxs:sfp-threshold
Nov 21, 2019
Merged

[Mellanox] support get_transceiver_threshold_info#3777
jleveque merged 4 commits into
sonic-net:masterfrom
stephenxs:sfp-threshold

Conversation

@stephenxs

@stephenxs stephenxs commented Nov 18, 2019

Copy link
Copy Markdown
Collaborator

- What I did
support get_transceiver_dom_threshold_info_dict
It depends on the kernel patch 0046-mlxsw-core-Extend-QSFP-EEPROM-supported-size-for-eth.patch which is not yet uploaded.

It depends on Add support for tx power threshold warning/alarm and FlatMem #66
It also depends on [submodule]advance submodule head for sonic-platform-common #3787

- How I did it
For qsfp, read and parse the 3rd page which containing the threshold info.

- How to verify it
call get_transceiver_threshold_info for SFP modules and QSFP modules with/without page 3 support.
test result:
testresult.txt

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Stephen Sun added 2 commits September 5, 2019 04:17
1. qsfp threshold: tx power
2. beautify code, removing some magic numbers
3. optimize get_present by only reading one byte.
@stephenxs stephenxs changed the title [sonic_platform.sfp] support get_transceiver_threshold_info [Mellanox] support get_transceiver_threshold_info Nov 19, 2019
@stephenxs
stephenxs marked this pull request as ready for review November 19, 2019 08:56
@stephenxs

Copy link
Copy Markdown
Collaborator Author

retest this, please

@qiluo-msft
qiluo-msft requested a review from jleveque November 19, 2019 17:47
@keboliu

keboliu commented Dec 13, 2019

Copy link
Copy Markdown
Collaborator

@jleveque this one is requested by bmtor branch, would you please help to set the label?

@nazariig

Copy link
Copy Markdown
Collaborator

@yxieca just a kindly reminder: please take it to bmtor.

lguohan pushed a commit that referenced this pull request Jan 6, 2020
* [sonic_platform.sfp] support get_transceiver_dom_threshold_info_dict

* [platform/sfp]qsfp threshold and beautify code
1. qsfp threshold: tx power
2. beautify code, removing some magic numbers
3. optimize get_present by only reading one byte.
zhenggen-xu pushed a commit to zhenggen-xu/sonic-buildimage that referenced this pull request Jan 10, 2020
* [sonic_platform.sfp] support get_transceiver_dom_threshold_info_dict

* [platform/sfp]qsfp threshold and beautify code
1. qsfp threshold: tx power
2. beautify code, removing some magic numbers
3. optimize get_present by only reading one byte.
xdqi pushed a commit to canonical/sonic-buildimage that referenced this pull request Jul 6, 2026
* [sonic_platform.sfp] support get_transceiver_dom_threshold_info_dict

* [platform/sfp]qsfp threshold and beautify code
1. qsfp threshold: tx power
2. beautify code, removing some magic numbers
3. optimize get_present by only reading one byte.
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