Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Mellanox] support get_transceiver_threshold_info #3777

Merged
merged 4 commits into from
Nov 21, 2019

Conversation

stephenxs
Copy link
Collaborator

@stephenxs stephenxs commented Nov 18, 2019

- 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
Collaborator Author

retest this, please

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

keboliu commented Dec 13, 2019

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

@nazariig
Copy link
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.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants