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

Updated dependency to govdpa v0.1.4 #450

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

lmilleri
Copy link
Contributor

@lmilleri lmilleri commented Nov 4, 2022

A new release of govdpa library has been published (v.0.1.4), introducing new functionalities like add/remove vDPA devices and also significant changes to the public interface.

The current changes to the sriov-network-device-plugin are required to import govdpa v.0.1.4

@lmilleri
Copy link
Contributor Author

lmilleri commented Nov 7, 2022

Hi, can anyone please help with the following:

  • workflow running approval
  • "LGTM analysys: Javascript" is failing. Is it a real problem?
  • I noticed there are a lot of unwanted changes in the vendor directory, due to automatic indentation. Is it ok to keep it?

/cc @zshi-redhat

@coveralls
Copy link
Collaborator

coveralls commented Nov 7, 2022

Pull Request Test Coverage Report for Build 3516750855

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 25 (0.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.8%) to 76.385%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/netdevice/vdpa.go 0 11 0.0%
pkg/utils/vdpa_provider.go 0 14 0.0%
Totals Coverage Status
Change from base Build 3515301972: -0.8%
Covered Lines: 1572
Relevant Lines: 2058

💛 - Coveralls

.vscode/settings.json Outdated Show resolved Hide resolved
pkg/netdevice/netInfoProviders.go Outdated Show resolved Hide resolved
@lmilleri
Copy link
Contributor Author

@adrianchiris Please review or add relevant people in cc

@adrianchiris
Copy link
Contributor

just one minor question on my side.
otherwise LGTM.

@lmilleri can you rebase this PR ?

@bn222
Copy link
Contributor

bn222 commented Nov 22, 2022

/lgtm

Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the contribution the PR is almost ready to small nits and one question

pkg/netdevice/vdpa.go Outdated Show resolved Hide resolved
pkg/utils/vdpa_provider.go Outdated Show resolved Hide resolved
if numVdpaDevices == 0 {
return nil, fmt.Errorf("no vdpa device associated to pciAddress %v", pciAddr)
}
if numVdpaDevices > 1 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a valid use-case?
should we always return the first one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adrian asked the same question, please check comments above. Basically, there is only one vdpa device per pci-address in SRIOV. Anyway, the govdpa interface is more general and future proof for when sub-functions will be supported.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good that we ask the same questions :P

Signed-off-by: Leonardo Milleri <lmilleri@redhat.com>
Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@adrianchiris adrianchiris merged commit a5a7395 into k8snetworkplumbingwg:master Nov 27, 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.

5 participants