test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH]tests vf_rss: use get_port_mac() to get vf mac in testpmd, add nh=132 to assign sctp packet
@ 2016-02-25  1:28 Lijuan Tu
  2016-02-26  3:11 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Lijuan Tu @ 2016-02-25  1:28 UTC (permalink / raw)
  To: qian.q.xu, huilongx.xu, yulong.pei, dts

Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
---
 tests/TestSuite_vf_rss.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_vf_rss.py b/tests/TestSuite_vf_rss.py
index 9b6ee6f..0e83832 100644
--- a/tests/TestSuite_vf_rss.py
+++ b/tests/TestSuite_vf_rss.py
@@ -58,7 +58,7 @@ class TestVfRss(TestCase):
         self.tester.scapy_append('sys.path.append("./")')
         self.tester.scapy_append('from sctp import *')
         self.vm_dut_0.send_expect("start", "testpmd>")
-        mac = self.vm_dut_0.get_mac_address(0)
+        mac = self.vm0_testpmd.get_port_mac(0)
         # send packet with different source and dest ip
         if tran_type == "ipv4-other":
             for i in range(16):
@@ -124,12 +124,12 @@ class TestVfRss(TestCase):
                 time.sleep(.5)
         elif tran_type == "ipv6-sctp":
             for i in range(16):
-                packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")/SCTP(sport=1024,dport=1025,tag=1)], iface="%s")' % (
+                packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d", nh=132)/SCTP(sport=1024,dport=1025,tag=1)], iface="%s")' % (
                     mac, i + 1, i + 2, itf)
                 self.tester.scapy_append(packet)
                 self.tester.scapy_execute()
                 time.sleep(.5)
-                packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")/SCTP(sport=1025,dport=1024,tag=1)], iface="%s")' % (
+                packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d", nh=132)/SCTP(sport=1025,dport=1024,tag=1)], iface="%s")' % (
                     mac, i + 2, i + 1, itf)
                 self.tester.scapy_append(packet)
                 self.tester.scapy_execute()
@@ -221,6 +221,7 @@ class TestVfRss(TestCase):
         self.verify(len(self.dut_ports) >= 1, "Not enough ports available")
 
         self.vm0 = None
+        self.host_testpmd = None
         self.setup_1pf_1vf_1vm_env_flag = 0
         self.setup_1pf_1vf_1vm_env(driver='')
 
-- 
2.5.0

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

* Re: [dts] [PATCH]tests vf_rss: use get_port_mac() to get vf mac in testpmd, add nh=132 to assign sctp packet
  2016-02-25  1:28 [dts] [PATCH]tests vf_rss: use get_port_mac() to get vf mac in testpmd, add nh=132 to assign sctp packet Lijuan Tu
@ 2016-02-26  3:11 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2016-02-26  3:11 UTC (permalink / raw)
  To: Tu, LijuanX A, Xu, Qian Q, Xu, HuilongX, Pei, Yulong, dts

Applied. Thanks.

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lijuan Tu
> Sent: Thursday, February 25, 2016 9:28 AM
> To: Xu, Qian Q; Xu, HuilongX; Pei, Yulong; dts@dpdk.org
> Subject: [dts] [PATCH]tests vf_rss: use get_port_mac() to get vf mac in
> testpmd, add nh=132 to assign sctp packet
> 
> Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
> ---
>  tests/TestSuite_vf_rss.py | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_vf_rss.py b/tests/TestSuite_vf_rss.py
> index 9b6ee6f..0e83832 100644
> --- a/tests/TestSuite_vf_rss.py
> +++ b/tests/TestSuite_vf_rss.py
> @@ -58,7 +58,7 @@ class TestVfRss(TestCase):
>          self.tester.scapy_append('sys.path.append("./")')
>          self.tester.scapy_append('from sctp import *')
>          self.vm_dut_0.send_expect("start", "testpmd>")
> -        mac = self.vm_dut_0.get_mac_address(0)
> +        mac = self.vm0_testpmd.get_port_mac(0)
>          # send packet with different source and dest ip
>          if tran_type == "ipv4-other":
>              for i in range(16):
> @@ -124,12 +124,12 @@ class TestVfRss(TestCase):
>                  time.sleep(.5)
>          elif tran_type == "ipv6-sctp":
>              for i in range(16):
> -                packet =
> r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d",
> dst="3ffe:2501:200:3::%d")/SCTP(sport=1024,dport=1025,tag=1)], iface="%s")' %
> (
> +                packet =
> r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d",
> dst="3ffe:2501:200:3::%d", nh=132)/SCTP(sport=1024,dport=1025,tag=1)],
> iface="%s")' % (
>                      mac, i + 1, i + 2, itf)
>                  self.tester.scapy_append(packet)
>                  self.tester.scapy_execute()
>                  time.sleep(.5)
> -                packet =
> r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d",
> dst="3ffe:2501:200:3::%d")/SCTP(sport=1025,dport=1024,tag=1)], iface="%s")' %
> (
> +                packet =
> r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d",
> dst="3ffe:2501:200:3::%d", nh=132)/SCTP(sport=1025,dport=1024,tag=1)],
> iface="%s")' % (
>                      mac, i + 2, i + 1, itf)
>                  self.tester.scapy_append(packet)
>                  self.tester.scapy_execute()
> @@ -221,6 +221,7 @@ class TestVfRss(TestCase):
>          self.verify(len(self.dut_ports) >= 1, "Not enough ports available")
> 
>          self.vm0 = None
> +        self.host_testpmd = None
>          self.setup_1pf_1vf_1vm_env_flag = 0
>          self.setup_1pf_1vf_1vm_env(driver='')
> 
> --
> 2.5.0

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

end of thread, other threads:[~2016-02-26  3:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-25  1:28 [dts] [PATCH]tests vf_rss: use get_port_mac() to get vf mac in testpmd, add nh=132 to assign sctp packet Lijuan Tu
2016-02-26  3:11 ` Liu, Yong

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).