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 7CD5BA00C5; Thu, 11 Jun 2020 14:05:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6F0042C39; Thu, 11 Jun 2020 14:05:00 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 9BB552AB for ; Thu, 11 Jun 2020 14:04:58 +0200 (CEST) IronPort-SDR: oaOSxURpD9hJ6cukNOeM9MQxApQ/SU1gbh0M3/EzqrHKcXKgL7UsJWelsT/MjMB7ss9YWOcAQg k/uWd5aBVnkw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2020 05:04:58 -0700 IronPort-SDR: LkzKtJbqbZZhG1zYB9HV9+UCyVERaQRmrHsJrux0bQlYkLB1OKaeAOf/bHs0E5wzLjk10ORVJ7 3jXjNA/Ns0VA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,499,1583222400"; d="scan'208";a="306907211" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 11 Jun 2020 05:04:58 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 05:04:58 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 05:04:57 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0439.000; Thu, 11 Jun 2020 20:04:54 +0800 From: "Tu, Lijuan" To: "Fu, Qi" , "dts@dpdk.org" CC: "Fu, Qi" Thread-Topic: [dts] [PATCH V1]tests/TestSuite_cvl_advanced_iavf_rss: add l2tp and esp test case to advanced iavf rss Thread-Index: AQHWOX2L0irVZ5yv/06IEykXHl2tWajTXggA Date: Thu, 11 Jun 2020 12:04:53 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC5BB40@SHSMSX101.ccr.corp.intel.com> References: <20200603165531.5054-1-qi.fu@intel.com> In-Reply-To: <20200603165531.5054-1-qi.fu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks -----Original Message----- From: dts On Behalf Of Fu Qi Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B4=1B$BF|=1B(B 0:56 To: dts@dpdk.org Cc: Fu, Qi Subject: [dts] [PATCH V1]tests/TestSuite_cvl_advanced_iavf_rss: add l2tp an= d esp test case to advanced iavf rss 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 =3D { "check_pf_rss_func": rfc.check_pf_rss_queue } =20 +tv_iavf_mac_ipv4_l2tpv3 =3D { + "name": "iavf_mac_ipv4_l2tpv3", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / l2tpv3= oip / end actions rss types l2tpv3 end key_len 0 queues end / end", + "scapy_str": ['Ether(dst=3D"%s")/IP(src=3D"192.168.0.3", proto=3D115)/= 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 =3D { + "name": "iavf_mac_ipv6_l2tpv3", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / l2tpv3= oip / end actions rss types l2tpv3 end key_len 0 queues end / end", + "scapy_str": ['Ether(dst=3D"%s")/IPv6(src=3D"1111:2222:3333:4444:5555:= 6666:7777:8888", nh=3D115)/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 =3D { + "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=3D"%s")/IP(src=3D"192.168.0.3", proto=3D50)/E= SP(spi=3DRandShort())/Raw("X"*480)' % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue } + +tv_iavf_mac_ipv6_esp =3D { + "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=3D'%s')/IPv6(src=3D'1111:2222:3333:4444:5555:= 6666:7777:8888', nh=3D50)/ESP(spi=3DRandShort())/Raw('X'*480)" % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue } + +tv_iavf_mac_ipv4_ah =3D { + "name": "iavf_mac_ipv4_ah", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / ah / e= nd actions rss types ah end key_len 0 queues end / end", + "scapy_str": ["Ether(dst=3D'%s')/IP(src=3D'192.168.0.3', proto=3D51)/A= H(spi=3DRandShort())/Raw('X'*480)" % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue } + +tv_iavf_mac_ipv6_ah =3D { + "name": "iavf_mac_ipv6_ah", + "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / ah / e= nd actions rss types ah end key_len 0 queues end / end", + "scapy_str": ["Ether(dst=3D'%s')/IPv6(src=3D'1111:2222:3333:4444:5555:= 6666:7777:8888', nh=3D51)/AH(spi=3DRandShort())/Raw('X'*480)" % vf0_mac], + "send_count": 100, + "check_func": rfc.check_iavf_packets_rss_queue } + tvs_iavf_mac_eth_src =3D [ tv_iavf_mac_eth_src_only, ] @@ -651,6 +699,18 @@ tvs_check_pf_vf_inputset =3D [ tv_mac_ipv6_sctp_inputset, ] =20 +tvs_iavf_mac_rss_ipv4_l2tpv3 =3D [tv_iavf_mac_ipv4_l2tpv3] + +tvs_iavf_mac_rss_ipv6_l2tpv3 =3D [tv_iavf_mac_ipv6_l2tpv3] + +tvs_iavf_mac_rss_ipv4_esp =3D [tv_iavf_mac_ipv4_esp] + +tvs_iavf_mac_rss_ipv6_esp =3D [tv_iavf_mac_ipv6_esp] + +tvs_iavf_mac_rss_ipv4_ah =3D [tv_iavf_mac_ipv4_ah] + +tvs_iavf_mac_rss_ipv6_ah =3D [tv_iavf_mac_ipv6_ah] + =20 class AdvancedIavfRSSTest(TestCase): =20 @@ -920,6 +980,30 @@ class AdvancedIavfRSSTest(TestCase): self.create_testpmd_command(self.vf0_prop) self._rte_flow_validate_pattern(tvs_iavf_gtpu_ipv4_icmp) =20 + 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