-
Notifications
You must be signed in to change notification settings - Fork 114
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
[switchdev 1/x] Add additional methods to host/kernel.go #582
[switchdev 1/x] Add additional methods to host/kernel.go #582
Conversation
Thanks for your PR,
To skip the vendors CIs use one of:
|
2f1b7ad
to
aff61b4
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
aff61b4
to
7dcdee6
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
7dcdee6
to
292811f
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
292811f
to
00fac27
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
Pull Request Test Coverage Report for Build 7554932805
💛 - Coveralls |
@adrianchiris @SchSeba PTAL |
00fac27
to
7d2da0f
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
7d2da0f
to
4c2f557
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
4c2f557
to
e85ea1e
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
e85ea1e
to
67415cc
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
/test-all |
Thanks for your PR,
To skip the vendors CIs use one of:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few minor comments.
I'm happy to see unit tests around driver logic, great work!
I personally prefer using literals instead of constants in test code, but I see it's debatable. Just saying that to see if any other has the same preference.
67415cc
to
25bb9f7
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
Thanks for the review @zeeke I thought about your point, and I agree that it is better to use string literals in this case. It is much easier to understand what the test does in this case. I already updated the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments otherwise LGTM
New methods are: * BindDriverByBusAndDevice - binds device to the provided driver * UnbindDriverByBusAndDevice unbind device identified by bus and device ID from the driver Both methods allows to work with devices not only on PCI bus. +refactor driver-related methods +add unit-tests for changed methods Signed-off-by: Yury Kulazhenkov <[email protected]>
25bb9f7
to
12e3306
Compare
Thanks for your PR,
To skip the vendors CIs use one of:
|
Thanks for your PR,
To skip the vendors CIs use one of:
|
LGTM, will merge once CI is green. |
New methods are:
Both methods allows to work with devices not
only on PCI bus.
+refactor driver-related methods
+add unit-tests for changed methods
Context:
/sys/bus/vdpa
, not on/sys/bus/pci