Skip to content

[Mellanox] Refactor SFP related platform API and plugins with new SDK API#5326

Merged
jleveque merged 2 commits intosonic-net:masterfrom
keboliu:refactor_sfp_api
Sep 11, 2020
Merged

[Mellanox] Refactor SFP related platform API and plugins with new SDK API#5326
jleveque merged 2 commits intosonic-net:masterfrom
keboliu:refactor_sfp_api

Conversation

@keboliu
Copy link
Copy Markdown
Collaborator

@keboliu keboliu commented Sep 5, 2020

- Why I did it
Refactor SFP reset, low power get/set API, and plugins with new SDK SX APIs. Previously they were calling SDK SXD APIs which have glibc dependency because of shared memory usage.

Remove implementation "set_power_override", "tx_disable_channel", "tx_disable" which using SXD APIs, once related SDK SX API available, will add them back based on new SDK SX APIs.

- How I did it
Refactor these API/Plugins with new set of SDK sx_mgmt_* APIs.

- How to verify it
Use sfputil command to test the plugin; load platform APIs and test changed APIs

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

[Mellanox] Refactor SFP related platform API and plugins with new SDK API

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

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Sep 5, 2020

This pull request fixes 4 alerts when merging a9c7575 into 679d8df - view on LGTM.com

fixed alerts:

  • 3 for 'import *' may pollute namespace
  • 1 for Except block handles 'BaseException'

@jleveque jleveque merged commit 72ec212 into sonic-net:master Sep 11, 2020
@abdosi
Copy link
Copy Markdown
Contributor

abdosi commented Sep 19, 2020

@keboliu Can you confirm this works fine in 201911.

@rlhui @jleveque

@keboliu
Copy link
Copy Markdown
Collaborator Author

keboliu commented Sep 25, 2020

@abdosi @jleveque @rlhui I have verified this PR, cherry-pick clean and function works well, please help to cherry-pick.

abdosi pushed a commit that referenced this pull request Sep 29, 2020
… API (#5326)

Refactor SFP reset, low power get/set API, and plugins with new SDK SX APIs. Previously they were calling SDK SXD APIs which have glibc dependency because of shared memory usage.

Remove implementation "set_power_override", "tx_disable_channel", "tx_disable" which using SXD APIs, once related SDK SX API available, will add them back based on new SDK SX APIs.
@keboliu keboliu deleted the refactor_sfp_api branch October 9, 2020 02:41
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
… API (sonic-net#5326)

Refactor SFP reset, low power get/set API, and plugins with new SDK SX APIs. Previously they were calling SDK SXD APIs which have glibc dependency because of shared memory usage.

Remove implementation "set_power_override", "tx_disable_channel", "tx_disable" which using SXD APIs, once related SDK SX API available, will add them back based on new SDK SX APIs.
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.

3 participants