From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id DD84C1B757 for ; Wed, 7 Feb 2018 16:28:43 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Feb 2018 07:28:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,473,1511856000"; d="scan'208";a="17985915" Received: from nfvihost.sh.intel.com ([10.239.183.46]) by fmsmga002.fm.intel.com with ESMTP; 07 Feb 2018 07:28:41 -0800 From: michael.luo@intel.com To: dts@dpdk.org Date: Thu, 8 Feb 2018 07:22:08 +0800 Message-Id: <1518045728-48385-1-git-send-email-michael.luo@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH] tests/pmdrss_hash: set the rss type of ipv6-sctp as sctp X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2018 15:28:44 -0000 From: Luo Gaoliang The rss type of the flow type ipv6-sctp should be set as sctp instead of ip. And it need to explicitly set the next header nh=132 for scapy to send ipv6 sctp packets. Otherwise, the scapy below the version 2.3.2 will send ipv6 sctp packets with unknown next header(nh=59). Signed-off-by: Luo Gaoliang --- tests/TestSuite_pmdrss_hash.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_pmdrss_hash.py b/tests/TestSuite_pmdrss_hash.py index 78e4075..728c427 100644 --- a/tests/TestSuite_pmdrss_hash.py +++ b/tests/TestSuite_pmdrss_hash.py @@ -133,7 +133,7 @@ class TestPmdrssHash(TestCase): time.sleep(.5) elif tran_type == "ipv6-sctp": for i in range(10): - packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")/SCTP(sport=1024,dport=1024,tag=1)], iface="%s")' % ( + packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d", nh=132)/SCTP(sport=1024,dport=1024,tag=1)], iface="%s")' % ( mac, itf, i + 1, i + 2, itf) self.tester.scapy_append(packet) self.tester.scapy_execute() @@ -326,12 +326,12 @@ class TestPmdrssHash(TestCase): time.sleep(.5) elif tran_type == "ipv6-sctp": for i in range(4): - 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() @@ -451,7 +451,7 @@ class TestPmdrssHash(TestCase): # this hash not support in dpdk2.0 # 'l2_payload':'ether', 'ipv6-other': 'ip', - 'ipv6-sctp': 'ip', + 'ipv6-sctp': 'sctp', 'ipv6-udp': 'udp', 'ipv6-tcp': 'tcp', 'ipv6-frag': 'ip' @@ -502,7 +502,7 @@ class TestPmdrssHash(TestCase): # this hash not support in dpdk2.0 # 'l2_payload':'ether', 'ipv6-other': 'ip', - 'ipv6-sctp': 'ip', + 'ipv6-sctp': 'sctp', 'ipv6-udp': 'udp', 'ipv6-tcp': 'tcp', 'ipv6-frag': 'ip' @@ -555,7 +555,7 @@ class TestPmdrssHash(TestCase): # this hass not support in dpdk 2.0 # 'l2_payload':'ether', 'ipv6-other': 'ip', - 'ipv6-sctp': 'ip', + 'ipv6-sctp': 'sctp', 'ipv6-udp': 'udp', 'ipv6-tcp': 'tcp', 'ipv6-frag': 'ip' @@ -612,7 +612,7 @@ class TestPmdrssHash(TestCase): # this hash not support in dpdk2.0 # 'l2_payload':'ether', 'ipv6-other': 'ip', - 'ipv6-sctp': 'ip', + 'ipv6-sctp': 'sctp', 'ipv6-udp': 'udp', 'ipv6-tcp': 'tcp', 'ipv6-frag': 'ip' -- 2.7.4