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

Remove IsSriovPF as unused method of PciDevice interface #438

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

DmytroLinkin
Copy link
Contributor

This check is done by utility function with the same name, hence
remove method as unused.

Signed-off-by: Dmytro Linkin dlinkin@nvidia.com

@DmytroLinkin
Copy link
Contributor Author

DmytroLinkin commented Jul 15, 2022

/CC @adrianchiris

There is also unused GetSubClass method, but I supposed it's gonna be used with PCI SubClass implementation in the future.

@coveralls
Copy link
Collaborator

coveralls commented Jul 17, 2022

Pull Request Test Coverage Report for Build 2676592614

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.1%) to 76.623%

Files with Coverage Reduction New Missed Lines %
pkg/resources/pciDevice.go 2 55.91%
Totals Coverage Status
Change from base Build 2663118240: 0.1%
Covered Lines: 1570
Relevant Lines: 2049

💛 - Coveralls

@adrianchiris
Copy link
Contributor

Hi @DmytroLinkin ! thanks for working on this cleanup.

There is also unused GetSubClass method, but I supposed it's gonna be used with PCI SubClass implementation in the future.

it just returns PCI subclass attribute which is not being used throughout the code. im not sure what you are referring in rgards to future use of this method.

IMO it can also be removed. that said, it can be done in a followup PRd.

@DmytroLinkin
Copy link
Contributor Author

DmytroLinkin commented Jul 18, 2022

Mostly I'm talking about this lines
https://github.com/k8snetworkplumbingwg/sriov-network-device-plugin/blob/master/pkg/types/types.go#L63-L78
Which along with GetSubClass suggests that there can be such support in the future.

@adrianchiris
Copy link
Contributor

@DmytroLinkin can you rebase ? we can merge this one IMO

This check is done by utility function with the same name, hence
remove method as unused.

Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
@adrianchiris adrianchiris merged commit fc8984c into k8snetworkplumbingwg:master Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants