-
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
Rdma subsytem mode #799
Rdma subsytem mode #799
Conversation
Thanks for your PR,
To skip the vendors CIs, Maintainers can use one of:
|
511c308
to
4e22619
Compare
Pull Request Test Coverage Report for Build 11723997336Details
💛 - Coveralls |
4e22619
to
a179fe4
Compare
a179fe4
to
f7de046
Compare
Thanks for your PR,
To skip the vendors CIs, Maintainers can use one of:
|
fdaf09f
to
0179a03
Compare
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.
Tested with OCP 4.16 and Ubuntu 22.04
0179a03
to
88fc3f6
Compare
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.
Did a first round of review. Overall approach looks good, though the GenericPlugin is starting to become a little complicated
@@ -264,84 +273,83 @@ func needDriverCheckVdpaType(state *sriovnetworkv1.SriovNetworkNodeState, driver | |||
} | |||
|
|||
// setKernelArg Tries to add the kernel args via ostree or grubby. | |||
func setKernelArg(karg string) (bool, error) { | |||
func setKernelArg(helper helper.HostHelpersInterface, mode, karg string) error { |
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.
can you rename this to editKernelArg
?
@@ -264,84 +273,83 @@ func needDriverCheckVdpaType(state *sriovnetworkv1.SriovNetworkNodeState, driver | |||
} | |||
|
|||
// setKernelArg Tries to add the kernel args via ostree or grubby. | |||
func setKernelArg(karg string) (bool, error) { | |||
func setKernelArg(helper helper.HostHelpersInterface, mode, karg string) error { | |||
log.Log.Info("generic plugin setKernelArg()") |
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.
not strictly related to this PR, but it would be useful to log the kernel argument we are trying to add:
log.Log.Info("generic plugin setKernelArg()", "karg", karg)
|
||
// getKernelArgs gets Kernel arguments on the running sy. |
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.
doc string is probably a leftover
WaitForSRIOVStable() | ||
}) | ||
|
||
It("should run pod with RDMA cni and not expose nic metrics", func() { |
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.
isn't this supposed to be "without RDMA cni"?
test/scripts/rpm-ostree_mock
Outdated
then | ||
# Caller is trying to read kernel arguments. | ||
cat /proc/cmdline | ||
fi |
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.
nit: end file with an empty line
about
you are right I think we probably can add a kernel/host/driver plugin or something like that will only handle that part and leave the generic one with only creating VFs I can try to work on that for a following PR |
0d4394a
to
4be4279
Compare
4be4279
to
f2f7f33
Compare
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.
Thanks for adding tests!
f2f7f33
to
d672111
Compare
Signed-off-by: Sebastian Sch <[email protected]>
d672111
to
02c6b00
Compare
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
Thanks for addressing my comments
No description provided.