* [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd
@ 2020-02-18 7:04 lihong
2020-02-18 7:11 ` Tu, Lijuan
2020-02-18 7:11 ` Zeng, XiaoxiaoX
0 siblings, 2 replies; 3+ messages in thread
From: lihong @ 2020-02-18 7:04 UTC (permalink / raw)
To: dts; +Cc: lihong
Signed-off-by: lihong <lihongx.ma@intel.com>
---
tests/TestSuite_flow_classify_softnic.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py
index f707d1e..f2320be 100644
--- a/tests/TestSuite_flow_classify_softnic.py
+++ b/tests/TestSuite_flow_classify_softnic.py
@@ -86,7 +86,10 @@ class TestFlowClassifySoftnic(TestCase):
cmd="cat /sys/bus/pci/devices/%s/numa_node"%self.dut_p0_pci
numa_node = int(self.dut.send_expect(cmd, "# ", 60))
cpu_id = numa_node if numa_node > 0 else 0
- eal_params = self.dut.create_eal_parameters(cores=self.cores)
+ ports_info = []
+ for i in range(port_num):
+ ports_info.append(i)
+ eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=ports_info)
VDEV = "--vdev 'net_softnic0,firmware=./drivers/net/softnic/flow_classify_softnic/%s,cpu_id=%s,conn_port=8086'" % (filename,cpu_id)
if port_num == 4:
cmd = "{0} {1} {2} -s 0x10 -- -i --rxq=4 --txq=4 --disable-rss --portmask=0x10".format(TESTPMD, VDEV, eal_params)
--
2.17.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd
2020-02-18 7:04 [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd lihong
@ 2020-02-18 7:11 ` Tu, Lijuan
2020-02-18 7:11 ` Zeng, XiaoxiaoX
1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-02-18 7:11 UTC (permalink / raw)
To: Ma, LihongX, dts; +Cc: Ma, LihongX
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Tuesday, February 18, 2020 3:05 PM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info
> according to port num when start testpmd
>
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
> tests/TestSuite_flow_classify_softnic.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_flow_classify_softnic.py
> b/tests/TestSuite_flow_classify_softnic.py
> index f707d1e..f2320be 100644
> --- a/tests/TestSuite_flow_classify_softnic.py
> +++ b/tests/TestSuite_flow_classify_softnic.py
> @@ -86,7 +86,10 @@ class TestFlowClassifySoftnic(TestCase):
> cmd="cat /sys/bus/pci/devices/%s/numa_node"%self.dut_p0_pci
> numa_node = int(self.dut.send_expect(cmd, "# ", 60))
> cpu_id = numa_node if numa_node > 0 else 0
> - eal_params = self.dut.create_eal_parameters(cores=self.cores)
> + ports_info = []
> + for i in range(port_num):
> + ports_info.append(i)
> + eal_params = self.dut.create_eal_parameters(cores=self.cores,
> ports=ports_info)
> VDEV = "--vdev
> 'net_softnic0,firmware=./drivers/net/softnic/flow_classify_softnic/%s,cpu_id
> =%s,conn_port=8086'" % (filename,cpu_id)
> if port_num == 4:
> cmd = "{0} {1} {2} -s 0x10 -- -i --rxq=4 --txq=4 --disable-rss --
> portmask=0x10".format(TESTPMD, VDEV, eal_params)
> --
> 2.17.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd
2020-02-18 7:04 [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd lihong
2020-02-18 7:11 ` Tu, Lijuan
@ 2020-02-18 7:11 ` Zeng, XiaoxiaoX
1 sibling, 0 replies; 3+ messages in thread
From: Zeng, XiaoxiaoX @ 2020-02-18 7:11 UTC (permalink / raw)
To: Ma, LihongX, dts; +Cc: Ma, LihongX
[-- Attachment #1: Type: text/plain, Size: 1639 bytes --]
Tested_by: Zeng,xiaoxiao<xiaoxiaox.zeng@intel.com>
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Tuesday, February 18, 2020 3:05 PM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info
> according to port num when start testpmd
>
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
> tests/TestSuite_flow_classify_softnic.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_flow_classify_softnic.py
> b/tests/TestSuite_flow_classify_softnic.py
> index f707d1e..f2320be 100644
> --- a/tests/TestSuite_flow_classify_softnic.py
> +++ b/tests/TestSuite_flow_classify_softnic.py
> @@ -86,7 +86,10 @@ class TestFlowClassifySoftnic(TestCase):
> cmd="cat /sys/bus/pci/devices/%s/numa_node"%self.dut_p0_pci
> numa_node = int(self.dut.send_expect(cmd, "# ", 60))
> cpu_id = numa_node if numa_node > 0 else 0
> - eal_params = self.dut.create_eal_parameters(cores=self.cores)
> + ports_info = []
> + for i in range(port_num):
> + ports_info.append(i)
> + eal_params = self.dut.create_eal_parameters(cores=self.cores,
> ports=ports_info)
> VDEV = "--vdev
> 'net_softnic0,firmware=./drivers/net/softnic/flow_classify_softnic/%s,cpu_i
> d=%s,conn_port=8086'" % (filename,cpu_id)
> if port_num == 4:
> cmd = "{0} {1} {2} -s 0x10 -- -i --rxq=4 --txq=4 --disable-rss --
> portmask=0x10".format(TESTPMD, VDEV, eal_params)
> --
> 2.17.2
[-- Attachment #2: TestFlowClassifySoftnic.log --]
[-- Type: application/octet-stream, Size: 1420980 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-18 7:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18 7:04 [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd lihong
2020-02-18 7:11 ` Tu, Lijuan
2020-02-18 7:11 ` Zeng, XiaoxiaoX
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).