* [dts] [PATCH v1] test_plans/vf_interrupt_pmd: add fvl multi queue interrupt
@ 2020-02-13 10:20 Jiaqi Min
2020-02-19 8:27 ` Wang, Yinan
0 siblings, 1 reply; 2+ messages in thread
From: Jiaqi Min @ 2020-02-13 10:20 UTC (permalink / raw)
To: dts; +Cc: Jiaqi Min
add multi queue interrupt for fvl
Signed-off-by: Jiaqi Min <jiaqix.min@intel.com>
---
test_plans/vf_interrupt_pmd_test_plan.rst | 35 ++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/test_plans/vf_interrupt_pmd_test_plan.rst b/test_plans/vf_interrupt_pmd_test_plan.rst
index 8f91b14..db05cb4 100644
--- a/test_plans/vf_interrupt_pmd_test_plan.rst
+++ b/test_plans/vf_interrupt_pmd_test_plan.rst
@@ -190,4 +190,37 @@ Test Case4: VF interrupt pmd in VM with vfio-pci
7. Check if threads on core 2 have returned to sleep mode::
- L3FWD_POWER: lcore 2 sleeps until interrupt triggers
\ No newline at end of file
+ L3FWD_POWER: lcore 2 sleeps until interrupt triggers
+
+Test Case5: Check Interrupt for VF with 4 queues and vfio driver on i40e
+========================================================================
+
+1. Generate NIC VF, then bind it to vfio drvier::
+
+ echo 1 > /sys/bus/pci/devices/0000\:04\:00.0/sriov_numvfs
+
+ modprobe vfio-pci
+ usertools/dpdk-devbind.py --bind=vfio-pci 0000:04:10.0(vf_pci)
+
+ Notice: If your PF is kernel driver, make sure PF link is up when your start testpmd on VF.
+
+2. Start l3fwd-power with VF::
+
+ examples/l3fwd-power/build/l3fwd-power -c 3f -n 4 -m 2048 -- -P -p 0x1 --config="(0,0,1),(0,1,2),(0,2,3),(0,3,4)"
+
+3. Send packet with packet generator to the pf NIC, check that all threads waked up::
+
+ for x in range(0,10):
+ sendp([Ether(dst='vf_mac')/IP(src='2.1.1.' + str(x),dst='2.1.1.5')/UDP()/Raw(load='XXXXXXXXXXXXXXXXXX')], iface="tester_intf")
+
+ L3FWD_POWER: lcore 1 is waked up from rx interrupt on port 0 queue 0
+ L3FWD_POWER: lcore 2 is waked up from rx interrupt on port 0 queue 1
+ L3FWD_POWER: lcore 3 is waked up from rx interrupt on port 0 queue 2
+ L3FWD_POWER: lcore 4 is waked up from rx interrupt on port 0 queue 3
+
+4. Check if threads on all cores have returned to sleep mode::
+
+ L3FWD_POWER: lcore 1 sleeps until interrupt triggers
+ L3FWD_POWER: lcore 2 sleeps until interrupt triggers
+ L3FWD_POWER: lcore 3 sleeps until interrupt triggers
+ L3FWD_POWER: lcore 4 sleeps until interrupt triggers
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH v1] test_plans/vf_interrupt_pmd: add fvl multi queue interrupt
2020-02-13 10:20 [dts] [PATCH v1] test_plans/vf_interrupt_pmd: add fvl multi queue interrupt Jiaqi Min
@ 2020-02-19 8:27 ` Wang, Yinan
0 siblings, 0 replies; 2+ messages in thread
From: Wang, Yinan @ 2020-02-19 8:27 UTC (permalink / raw)
To: Min, JiaqiX, dts; +Cc: Min, JiaqiX
Acked-by: Wang, Yinan <yinan.wang@intel.com>
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Jiaqi Min
> Sent: 2020年2月13日 18:20
> To: dts@dpdk.org
> Cc: Min, JiaqiX <jiaqix.min@intel.com>
> Subject: [dts] [PATCH v1] test_plans/vf_interrupt_pmd: add fvl multi queue
> interrupt
>
> add multi queue interrupt for fvl
>
> Signed-off-by: Jiaqi Min <jiaqix.min@intel.com>
> ---
> test_plans/vf_interrupt_pmd_test_plan.rst | 35 ++++++++++++++++++++++-
> 1 file changed, 34 insertions(+), 1 deletion(-)
>
> diff --git a/test_plans/vf_interrupt_pmd_test_plan.rst
> b/test_plans/vf_interrupt_pmd_test_plan.rst
> index 8f91b14..db05cb4 100644
> --- a/test_plans/vf_interrupt_pmd_test_plan.rst
> +++ b/test_plans/vf_interrupt_pmd_test_plan.rst
> @@ -190,4 +190,37 @@ Test Case4: VF interrupt pmd in VM with vfio-pci
>
> 7. Check if threads on core 2 have returned to sleep mode::
>
> - L3FWD_POWER: lcore 2 sleeps until interrupt triggers
> \ No newline at end of file
> + L3FWD_POWER: lcore 2 sleeps until interrupt triggers
> +
> +Test Case5: Check Interrupt for VF with 4 queues and vfio driver on
> +i40e
> +===============================================================
> ========
> +=
> +
> +1. Generate NIC VF, then bind it to vfio drvier::
> +
> + echo 1 > /sys/bus/pci/devices/0000\:04\:00.0/sriov_numvfs
> +
> + modprobe vfio-pci
> + usertools/dpdk-devbind.py --bind=vfio-pci 0000:04:10.0(vf_pci)
> +
> + Notice: If your PF is kernel driver, make sure PF link is up when your start
> testpmd on VF.
> +
> +2. Start l3fwd-power with VF::
> +
> + examples/l3fwd-power/build/l3fwd-power -c 3f -n 4 -m 2048 -- -P -p 0x1
> --config="(0,0,1),(0,1,2),(0,2,3),(0,3,4)"
> +
> +3. Send packet with packet generator to the pf NIC, check that all threads
> waked up::
> +
> + for x in range(0,10):
> + sendp([Ether(dst='vf_mac')/IP(src='2.1.1.' +
> + str(x),dst='2.1.1.5')/UDP()/Raw(load='XXXXXXXXXXXXXXXXXX')],
> + iface="tester_intf")
> +
> + L3FWD_POWER: lcore 1 is waked up from rx interrupt on port 0 queue 0
> + L3FWD_POWER: lcore 2 is waked up from rx interrupt on port 0 queue 1
> + L3FWD_POWER: lcore 3 is waked up from rx interrupt on port 0 queue 2
> + L3FWD_POWER: lcore 4 is waked up from rx interrupt on port 0 queue
> + 3
> +
> +4. Check if threads on all cores have returned to sleep mode::
> +
> + L3FWD_POWER: lcore 1 sleeps until interrupt triggers
> + L3FWD_POWER: lcore 2 sleeps until interrupt triggers
> + L3FWD_POWER: lcore 3 sleeps until interrupt triggers
> + L3FWD_POWER: lcore 4 sleeps until interrupt triggers
> --
> 2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-19 8:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13 10:20 [dts] [PATCH v1] test_plans/vf_interrupt_pmd: add fvl multi queue interrupt Jiaqi Min
2020-02-19 8:27 ` Wang, Yinan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).