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

Internal refactoring to avoid unneeded netlink parsing #20

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

lmilleri
Copy link

@lmilleri lmilleri commented Aug 23, 2023

Internal refactoring to avoid unneeded netlink parsing
The parsing of some netlink structures is performed only for those vdpa objects
that need to be returned to the user.

@lmilleri
Copy link
Author

@amorenoz please review

pkg/kvdpa/device.go Outdated Show resolved Hide resolved
cmd/kvdpa-cli/kvdpa-cli.go Outdated Show resolved Hide resolved
pkg/kvdpa/device.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@amorenoz amorenoz left a comment

Choose a reason for hiding this comment

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

Regarding your commit msg, your signing with:

Signed-off-by: Leonardo Milleri <[email protected]>

Is that intentional? Maybe you want to configure the email in your local repo.

pkg/kvdpa/device.go Outdated Show resolved Hide resolved
@lmilleri lmilleri force-pushed the vdpa-device-by-pci branch 2 times, most recently from 0356b87 to f66bb12 Compare September 20, 2023 16:04
@lmilleri lmilleri changed the title GetVdpaDevicesByPciAddress refactoring Refactoring of some public functions Sep 22, 2023
pkg/kvdpa/device.go Outdated Show resolved Hide resolved
cmd/kvdpa-cli/kvdpa-cli.go Outdated Show resolved Hide resolved
@amorenoz
Copy link
Collaborator

Also, the commit title is a bit misleading as there is no public function change in this PR any more.

@lmilleri lmilleri changed the title Refactoring of some public functions Internal refactoring to avoid unneeded netlink parsing Sep 25, 2023
go.mod Outdated Show resolved Hide resolved
pkg/util/util.go Outdated Show resolved Hide resolved
The parsing of some netlink structures is performed only for those vdpa objects
that need to be returned to the user.

Signed-off-by: Leonardo Milleri <[email protected]>
@amorenoz
Copy link
Collaborator

Thanks @lmilleri.

@amorenoz amorenoz merged commit 07c1031 into k8snetworkplumbingwg:master Sep 26, 2023
1 check passed
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.

2 participants