Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Mellanox] Optimize SFP Platform API implementation #5476

Merged
merged 4 commits into from
Oct 19, 2020

Conversation

keboliu
Copy link
Collaborator

@keboliu keboliu commented Sep 28, 2020

- Why I did it

Each SFP object inside Chassis will open an SDK client, this is not necessary and SDK client can be shared between SFP objects.

- How I did it

Open one SDK client in Chassis init phase, pass this SDK client handle to all the SFP objects when init them.
Remove SDK client open/close code from the SFP object init/delete process.

- How to verify it

Verify current pmon daemons work well with these change.
Call related platform API and test the result.

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

  • 201811
  • 201911
  • 202006

- Description for the changelog

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

@lgtm-com
Copy link

lgtm-com bot commented Sep 28, 2020

This pull request introduces 1 alert when merging fb783de into e3f8159 - view on LGTM.com

new alerts:

  • 1 for Unused import

stephenxs
stephenxs previously approved these changes Sep 29, 2020
@stephenxs
Copy link
Collaborator

retest this please

@keboliu
Copy link
Collaborator Author

keboliu commented Oct 12, 2020

retest mellanox please

3 similar comments
@keboliu
Copy link
Collaborator Author

keboliu commented Oct 13, 2020

retest mellanox please

@keboliu
Copy link
Collaborator Author

keboliu commented Oct 16, 2020

retest mellanox please

@liat-grozovik
Copy link
Collaborator

retest mellanox please

@jleveque jleveque merged commit 73f38f6 into sonic-net:master Oct 19, 2020
abdosi pushed a commit that referenced this pull request Oct 21, 2020
Each SFP object inside Chassis will open an SDK client, this is not necessary and SDK client can be shared between SFP objects.
@keboliu keboliu deleted the optimize-sfp-api branch January 2, 2021 01:26
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
Each SFP object inside Chassis will open an SDK client, this is not necessary and SDK client can be shared between SFP objects.
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