-
Notifications
You must be signed in to change notification settings - Fork 135
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
Dpdk tests: add a test that runs a pod using netdevice together with dpdk. #368
Dpdk tests: add a test that runs a pod using netdevice together with dpdk. #368
Conversation
1e92af0
to
d5841f9
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.
one comment I think we should have some clean between the different parts
execute.BeforeAll(func() { | ||
createSriovPolicyAndNetworkShared() | ||
var err error | ||
dpdkWorkloadPod, err = createDPDKWorkload(nodeSelector, |
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.
should you clean the old pods before?
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.
That was done inside createSriovPolicyAndNetworkShared
/ createSriovPolicyAndNetworkDPDKOnly
(as it was before).
Will move the clean function outside, I agree it will improve readability.
d5841f9
to
9fa3804
Compare
9fa3804
to
d1667b1
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.
just a small nit and we can merge this PR thanks for the great job!
}) | ||
|
||
It("Run a regular pod using a vf shared with the dpdk's pf", func() { | ||
podDefinition := pods.DefineWithNetworks(namespaces.DpdkTest, []string{"test-regular-network"}) |
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: can use add the network name as const
and reuse it in the createSriovPolicyAndNetworkShared
function?
/hold |
d1667b1
to
47e5300
Compare
47e5300
to
5d4861c
Compare
/hold cancel |
5d4861c
to
b9b4784
Compare
/retest |
b9b4784
to
966b18c
Compare
…dpdk. This uses the sriov device partitioning, assigning some vfs to the dpdk payload and some others to pods using net devices. Also, changes the num of hugepages to 5 as 4 are needed to the two dpdk pods, one to the regular pod. Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
966b18c
to
e5e9d2d
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fedepaol, SchSeba The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This uses the sriov device partitioning, assigning some vfs to the dpdk payload and some
others to pods using net devices.
Also, changes the num of hugepages to 5 as 4 are needed to the two dpdk pods, one to the regular pod.