From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0BB18A04EF; Wed, 3 Jun 2020 10:03:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B3B2B1C1B1; Wed, 3 Jun 2020 10:03:42 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 67EEB1C1A7 for ; Wed, 3 Jun 2020 10:03:40 +0200 (CEST) IronPort-SDR: rSB74rDUYOm/Y20xsn/FV968LyjRmI5NT7YIzOQKTwAXEEvI0pNg1uQjudHs2Kxo+rul9zFW1K M+AIS+egwVTw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2020 01:03:39 -0700 IronPort-SDR: zhS47f+scL/BeGeRW1R1HpNOccCTDqm2FDPY22sB0paoDC+LFBxrH44M4L+vuCh0R6+ZeJABlQ Ga5bq+th80iQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,467,1583222400"; d="scan'208";a="445007133" Received: from dpdk-qifu-cxl.sh.intel.com ([10.67.119.67]) by orsmga005.jf.intel.com with ESMTP; 03 Jun 2020 01:03:37 -0700 From: Fu Qi To: dts@dpdk.org Cc: Fu Qi Date: Wed, 3 Jun 2020 12:55:31 -0400 Message-Id: <20200603165531.5054-1-qi.fu@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1]tests/TestSuite_cvl_advanced_iavf_rss: add l2tp and esp test case to advanced iavf rss 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Add test cases for l2tpv3 and esp supported in advanced iavf rss. Signed-off-by: Fu Qi --- tests/TestSuite_cvl_advanced_iavf_rss.py | 84 ++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py b/tests/TestSuite_cvl_advanced_iavf_rss.py index 144e268..1e6ac19 100644 --- a/tests/TestSuite_cvl_advanced_iavf_rss.py +++ b/tests/TestSuite_cvl_advanced_iavf_rss.py @@ -542,6 +542,54 @@ tv_mac_ipv6_sctp_inputset = { "check_pf_rss_func": rfc.check_pf_rss_queue } +tv_iavf_mac_ipv4_l2tpv3 = { + "name": "iavf_mac_ipv4_l2tpv3", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / l2tpv3oip / end actions rss types l2tpv3 end key_len 0 queues end / end", + "scapy_str": ['Ether(dst="%s")/IP(src="192.168.0.3", proto=115)/L2TP(hex(RandNum(16,255))[1:]+"\\x00\\x00\\x00")/Raw("X"*480)' % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue +} + +tv_iavf_mac_ipv6_l2tpv3 = { + "name": "iavf_mac_ipv6_l2tpv3", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / l2tpv3oip / end actions rss types l2tpv3 end key_len 0 queues end / end", + "scapy_str": ['Ether(dst="%s")/IPv6(src="1111:2222:3333:4444:5555:6666:7777:8888", nh=115)/L2TP(hex(RandNum(16,255))[1:]+"\\x00\\x00\\x00")/Raw("X"*480)' % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue +} + +tv_iavf_mac_ipv4_esp = { + "name": "iavf_mac_ipv4_esp", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / esp / end actions rss types esp end key_len 0 queues end / end", + "scapy_str": ['Ether(dst="%s")/IP(src="192.168.0.3", proto=50)/ESP(spi=RandShort())/Raw("X"*480)' % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue +} + +tv_iavf_mac_ipv6_esp = { + "name": "iavf_mac_ipv6_esp", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / esp / end actions rss types esp end key_len 0 queues end / end", + "scapy_str": ["Ether(dst='%s')/IPv6(src='1111:2222:3333:4444:5555:6666:7777:8888', nh=50)/ESP(spi=RandShort())/Raw('X'*480)" % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue +} + +tv_iavf_mac_ipv4_ah = { + "name": "iavf_mac_ipv4_ah", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / ah / end actions rss types ah end key_len 0 queues end / end", + "scapy_str": ["Ether(dst='%s')/IP(src='192.168.0.3', proto=51)/AH(spi=RandShort())/Raw('X'*480)" % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue +} + +tv_iavf_mac_ipv6_ah = { + "name": "iavf_mac_ipv6_ah", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / ah / end actions rss types ah end key_len 0 queues end / end", + "scapy_str": ["Ether(dst='%s')/IPv6(src='1111:2222:3333:4444:5555:6666:7777:8888', nh=51)/AH(spi=RandShort())/Raw('X'*480)" % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue +} + tvs_iavf_mac_eth_src = [ tv_iavf_mac_eth_src_only, ] @@ -651,6 +699,18 @@ tvs_check_pf_vf_inputset = [ tv_mac_ipv6_sctp_inputset, ] +tvs_iavf_mac_rss_ipv4_l2tpv3 = [tv_iavf_mac_ipv4_l2tpv3] + +tvs_iavf_mac_rss_ipv6_l2tpv3 = [tv_iavf_mac_ipv6_l2tpv3] + +tvs_iavf_mac_rss_ipv4_esp = [tv_iavf_mac_ipv4_esp] + +tvs_iavf_mac_rss_ipv6_esp = [tv_iavf_mac_ipv6_esp] + +tvs_iavf_mac_rss_ipv4_ah = [tv_iavf_mac_ipv4_ah] + +tvs_iavf_mac_rss_ipv6_ah = [tv_iavf_mac_ipv6_ah] + class AdvancedIavfRSSTest(TestCase): @@ -920,6 +980,30 @@ class AdvancedIavfRSSTest(TestCase): self.create_testpmd_command(self.vf0_prop) self._rte_flow_validate_pattern(tvs_iavf_gtpu_ipv4_icmp) + def test_iavf_rss_ipv4_l2tpv3(self): + self.create_testpmd_command(self.vf0_prop) + self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv4_l2tpv3) + + def test_iavf_rss_ipv6_l2tpv3(self): + self.create_testpmd_command(self.vf0_prop) + self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv6_l2tpv3) + + def test_iavf_rss_ipv4_esp(self): + self.create_testpmd_command(self.vf0_prop) + self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv4_esp) + + def test_iavf_rss_ipv6_esp(self): + self.create_testpmd_command(self.vf0_prop) + self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv6_esp) + + def test_iavf_rss_ipv4_ah(self): + self.create_testpmd_command(self.vf0_prop) + self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv4_ah) + + def test_iavf_rss_ipv6_ah(self): + self.create_testpmd_command(self.vf0_prop) + self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv6_ah) + # def test_iavf_ipv4_sctp_gtpu_updown(self): # self.create_testpmd_command(self.vf0_prop) # self._rte_flow_validate_pattern(tvs_iavf_gtpu_ipv4_sctp) -- 2.17.1