test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH] TestSuite_tso.py:Modified csum set commands and testpmd command for cavium_a063 and cavium_a064
@ 2020-01-10  5:45 usurekha
  2020-01-10  7:29 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: usurekha @ 2020-01-10  5:45 UTC (permalink / raw)
  To: dts; +Cc: pvukkisala, usurekha

From: usurekha <usurekha@marvell.com>

Added required tx-offload field in testpmd command.
Modified csum set commands as SCTP and outer-ip packet checksum is unsupported by cavium_a063.

Signed-off-by: usurekha <usurekha@marvell.com>
---
 tests/TestSuite_tso.py | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py
index c53f392..e1b912b 100644
--- a/tests/TestSuite_tso.py
+++ b/tests/TestSuite_tso.py
@@ -208,22 +208,27 @@ class TestTSO(TestCase):
         self.tester.send_expect("ethtool -K %s rx off tx off tso off gso off gro off lro off" % tx_interface, "# ")
         self.tester.send_expect("ip l set %s up" % tx_interface, "# ")
 
-        cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask, TSO_MTU)
+        if (self.nic in ["cavium_a063","cavium_a064"]):
+            cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8000" % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask, TSO_MTU)
+        else:
+            cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask, TSO_MTU)
         self.dut.send_expect(cmd, "testpmd> ", 120)
         self.dut.send_expect("set verbose 1", "testpmd> ", 120)
         self.dut.send_expect("port stop all", "testpmd> ", 120)
         self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "testpmd> ", 120)
         self.dut.send_expect("csum set udp hw %d" % self.dut_ports[0], "testpmd> ", 120)
         self.dut.send_expect("csum set tcp hw %d" % self.dut_ports[0], "testpmd> ", 120)
-        self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[0], "testpmd> ", 120)
-        self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[0], "testpmd> ", 120)
+        if (self.nic not in ["cavium_a063", "cavium_a064"]):
+            self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[0], "testpmd> ", 120)
+            self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[0], "testpmd> ", 120)
         self.dut.send_expect("csum parse-tunnel on %d" % self.dut_ports[0], "testpmd> ", 120)
 
         self.dut.send_expect("csum set ip hw %d" % self.dut_ports[1], "testpmd> ", 120)
         self.dut.send_expect("csum set udp hw %d" % self.dut_ports[1], "testpmd> ", 120)
         self.dut.send_expect("csum set tcp hw %d" % self.dut_ports[1], "testpmd> ", 120)
-        self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[1], "testpmd> ", 120)
-        self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[1], "testpmd> ", 120)
+        if (self.nic not in ["cavium_a063", "cavium_a064"]):
+            self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[1], "testpmd> ", 120)
+            self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[1], "testpmd> ", 120)
         self.dut.send_expect("csum parse-tunnel on %d" % self.dut_ports[1], "testpmd> ", 120)
 
         self.dut.send_expect("tso set 800 %d" % self.dut_ports[1], "testpmd> ", 120)
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH] TestSuite_tso.py:Modified csum set commands and testpmd command for cavium_a063 and cavium_a064
  2020-01-10  5:45 [dts] [PATCH] TestSuite_tso.py:Modified csum set commands and testpmd command for cavium_a063 and cavium_a064 usurekha
@ 2020-01-10  7:29 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-01-10  7:29 UTC (permalink / raw)
  To: usurekha, dts; +Cc: pvukkisala

applied

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of
> usurekha@marvell.com
> Sent: Friday, January 10, 2020 1:45 PM
> To: dts@dpdk.org
> Cc: pvukkisala@marvell.com; usurekha <usurekha@marvell.com>
> Subject: [dts] [PATCH] TestSuite_tso.py:Modified csum set commands and
> testpmd command for cavium_a063 and cavium_a064
> 
> From: usurekha <usurekha@marvell.com>
> 
> Added required tx-offload field in testpmd command.
> Modified csum set commands as SCTP and outer-ip packet checksum is
> unsupported by cavium_a063.
> 
> Signed-off-by: usurekha <usurekha@marvell.com>
> ---
>  tests/TestSuite_tso.py | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py index
> c53f392..e1b912b 100644
> --- a/tests/TestSuite_tso.py
> +++ b/tests/TestSuite_tso.py
> @@ -208,22 +208,27 @@ class TestTSO(TestCase):
>          self.tester.send_expect("ethtool -K %s rx off tx off tso off gso off gro off
> lro off" % tx_interface, "# ")
>          self.tester.send_expect("ip l set %s up" % tx_interface, "# ")
> 
> -        cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --
> burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --
> txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.target,
> self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask,
> TSO_MTU)
> +        if (self.nic in ["cavium_a063","cavium_a064"]):
> +            cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --
> burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --
> txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8000" %
> (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist,
> self.portMask, TSO_MTU)
> +        else:
> +            cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512
> + --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s
> + --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 "
> + % (self.target, self.coreMask, self.dut.get_memory_channels(),
> + self.blacklist, self.portMask, TSO_MTU)
>          self.dut.send_expect(cmd, "testpmd> ", 120)
>          self.dut.send_expect("set verbose 1", "testpmd> ", 120)
>          self.dut.send_expect("port stop all", "testpmd> ", 120)
>          self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "testpmd>
> ", 120)
>          self.dut.send_expect("csum set udp hw %d" % self.dut_ports[0],
> "testpmd> ", 120)
>          self.dut.send_expect("csum set tcp hw %d" % self.dut_ports[0],
> "testpmd> ", 120)
> -        self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[0],
> "testpmd> ", 120)
> -        self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[0],
> "testpmd> ", 120)
> +        if (self.nic not in ["cavium_a063", "cavium_a064"]):
> +            self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[0],
> "testpmd> ", 120)
> +            self.dut.send_expect("csum set outer-ip hw %d" %
> + self.dut_ports[0], "testpmd> ", 120)
>          self.dut.send_expect("csum parse-tunnel on %d" % self.dut_ports[0],
> "testpmd> ", 120)
> 
>          self.dut.send_expect("csum set ip hw %d" % self.dut_ports[1], "testpmd>
> ", 120)
>          self.dut.send_expect("csum set udp hw %d" % self.dut_ports[1],
> "testpmd> ", 120)
>          self.dut.send_expect("csum set tcp hw %d" % self.dut_ports[1],
> "testpmd> ", 120)
> -        self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[1],
> "testpmd> ", 120)
> -        self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[1],
> "testpmd> ", 120)
> +        if (self.nic not in ["cavium_a063", "cavium_a064"]):
> +            self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[1],
> "testpmd> ", 120)
> +            self.dut.send_expect("csum set outer-ip hw %d" %
> + self.dut_ports[1], "testpmd> ", 120)
>          self.dut.send_expect("csum parse-tunnel on %d" % self.dut_ports[1],
> "testpmd> ", 120)
> 
>          self.dut.send_expect("tso set 800 %d" % self.dut_ports[1], "testpmd> ",
> 120)
> --
> 2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10  5:45 [dts] [PATCH] TestSuite_tso.py:Modified csum set commands and testpmd command for cavium_a063 and cavium_a064 usurekha
2020-01-10  7:29 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox