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 B3FFFA04EF; Wed, 3 Jun 2020 04:30:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 981F31BF54; Wed, 3 Jun 2020 04:30:15 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id D60F11BF4F for ; Wed, 3 Jun 2020 04:30:13 +0200 (CEST) IronPort-SDR: snZabrSjI8XHrhej5WYEu04lmShQCGaaG1YSCM/a5+mtndIAA1gobnSfl6oMnqayB8G+815ewS loWvS7bh19cw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2020 19:30:12 -0700 IronPort-SDR: N4k+sif2+sZkcMyb94siEkKY+W2Ea7V/UDNcbf7M5XC9XnFVfdo+jEMElTzyGxDycn7kvTWca2 jCwLSoXhvzcQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,466,1583222400"; d="scan'208";a="444929741" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 02 Jun 2020 19:30:12 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jun 2020 19:30:10 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jun 2020 19:30:09 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX103.ccr.corp.intel.com ([10.239.4.69]) with mapi id 14.03.0439.000; Wed, 3 Jun 2020 10:30:06 +0800 From: "Tu, Lijuan" To: "Fu, Qi" , "dts@dpdk.org" CC: "Fu, Qi" Thread-Topic: [dts] [PATCH V1]test_plans/cvl_advanced_iavf_rss_test_plan: add l2tp and esp to advanced iavf rss Thread-Index: AQHWOLQewGEPQyvMXkWq1VB3l+SnhqjGLFlw Date: Wed, 3 Jun 2020 02:30:06 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC587BE@SHSMSX101.ccr.corp.intel.com> References: <20200602165256.89377-1-qi.fu@intel.com> In-Reply-To: <20200602165256.89377-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="windows-1256" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]test_plans/cvl_advanced_iavf_rss_test_plan: add l2tp and esp 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 [mailto:dts-bounces@dpdk.org] On Behalf Of Fu Qi > Sent: Wednesday, June 3, 2020 12:53 AM > To: dts@dpdk.org > Cc: Fu, Qi > Subject: [dts] [PATCH V1]test_plans/cvl_advanced_iavf_rss_test_plan: add > l2tp and esp to advanced iavf rss >=20 > Add l2tpv3 and esp patterns to advanced iavf rss test plan. >=20 > Signed-off-by: Fu Qi > --- > .../cvl_advanced_iavf_rss_test_plan.rst | 228 +++++++++++++++++- > 1 file changed, 226 insertions(+), 2 deletions(-) >=20 > diff --git a/test_plans/cvl_advanced_iavf_rss_test_plan.rst > b/test_plans/cvl_advanced_iavf_rss_test_plan.rst > index ce68ebb..f326725 100644 > --- a/test_plans/cvl_advanced_iavf_rss_test_plan.rst > +++ b/test_plans/cvl_advanced_iavf_rss_test_plan.rst > @@ -198,6 +198,19 @@ Pattern and input set > +-------------------------------+---------------------------+-------= --------------------------- > ----------------------------------------------+ > | | MAC_IPV6_SIMPLE_XOR | [Dest = MAC]=EF=BC=8C[Source > IP], [Dest IP] | > +-------------------------------+---------------------------+-------= --------------------------- > ----------------------------------------------+ > + | | MAC_IPV4_L2TPv3 | [Sessi= on ID] > | > + +-------------------------------+---------------------------+-------= -------------------------- > -----------------------------------------------+ > + | | MAC_IPV6_L2TPv3 | [Sessi= on ID] > | > + +-------------------------------+---------------------------+-------= -------------------------- > -----------------------------------------------+ > + | | MAC_IPV4_ESP | [SPI] > | > + +-------------------------------+---------------------------+-------= -------------------------- > -----------------------------------------------+ > + | | MAC_IPV6_ESP | [SPI] > | > + +-------------------------------+---------------------------+-------= -------------------------- > -----------------------------------------------+ > + | | MAC_IPV4_AH | [SPI] > | > + +-------------------------------+---------------------------+-------= -------------------------- > -----------------------------------------------+ > + | | MAC_IPV6_AH | [SPI] > | > + > + +-------------------------------+---------------------------+--------- > + ---------------------------------------------------------------------- > + -+ > + >=20 > Default parameters > ------------------ > @@ -2121,7 +2134,187 @@ Test case: > SYMMETRIC_TOEPLITZ_VXLAN_IPV6_ICMP: >=20 > #. Destory rule on port 0 > testpmd> flow flush 0 > - > + > +Test case: MAC_IPV4_L2TPv3: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > +#. DUT create rule for the RSS type for MAC_IPV4_L2TPv3:: > + > + testpmd>flow create 0 ingress pattern eth / ipv4 / l2tpv3oip / e= nd > actions rss types l2tpv3 end key_len 0 queues end / end > + testpmd>start > + > +#. Tester use scapy to send the 100 MAC_IPV4_L2TPv3 pkts with different > session ID:: > + > + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3", > proto=3D115)/L2TP('\x00\x00\x00\x11')/Raw('x'*480)], iface=3D"enp134s0f0"= ) > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in differently 16 queues evenly with differently RSS hash value:: > + > + testpmd> stop > + > +#. check the flow can be listed and destory rule on port 0:: > + > + testpmd> flow list 0 > + ID Group Prio Attr Rule > + 0 0 0 i-- ETH IPV4 L2TPV3OIP =3D> RSS > + testpmd> flow flush 0 > + > +#. Tester use scapy to send the 100 MAC_IPV4_L2TPv3 pkts with different > session ID:: > + > + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3", > proto=3D115)/L2TP('\x00\x00\x00\x11')/Raw('x'*480)], iface=3D"enp134s0f0"= ) > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in the same queue. > + > +Test case: MAC_IPV6_L2TPv3: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > +#. DUT create rule for the RSS type for MAC_IPV6_L2TPv3:: > + > + testpmd>flow create 0 ingress pattern eth / ipv6 / l2tpv3oip / e= nd > actions rss types l2tpv3 end key_len 0 queues end / end > + testpmd>start > + > +#. Tester use scapy to send the 100 MAC_IPV6_L2TPv3 pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(nh=3D115)/L2TP('\x00\x00\x00= \x1 > 1')/Raw('x'*480)], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in differently 16 queues evenly with differently RSS hash value:: > + > + testpmd> stop > + > +#. check the flow can be listed and destory rule on port 0:: > + > + testpmd> flow list 0 > + ID Group Prio Attr Rule > + 0 0 0 i-- ETH IPV6 L2TPV3OIP =3D> RSS > + testpmd> flow flush 0 > + > +#. Tester use scapy to send the 100 MAC_IPV6_L2TPv3 pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(nh=3D115)/L2TP('\x00\x00\x00= \x1 > 1')/Raw('x'*480)], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in the same queue. > + > +Test case: MAC_IPV4_ESP: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +#. DUT create rule for the RSS type for MAC_IPV4_ESP:: > + > + testpmd>flow create 0 ingress pattern eth / ipv4 / esp / end act= ions rss > types esp end key_len 0 queues end / end > + testpmd>start > + > +#. Tester use scapy to send the 100 MAC_IPV4_ESP pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(proto=3D50)/ESP(spi=3D11)/Raw(= 'x'*48 > 0)], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in differently 16 queues evenly with differently RSS hash value:: > + > + testpmd> stop > + > +#. check the flow can be listed and destory rule on port 0:: > + > + testpmd> flow list 0 > + ID Group Prio Attr Rule > + 0 0 0 i-- ETH IPV4 ESP =3D> RSS > + testpmd> flow flush 0 > + > +#. Tester use scapy to send the 100 MAC_IPV4_ESP pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(proto=3D50)/ESP(spi=3D11)/Raw(= 'x'*48 > 0)], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in the same queue. > + > +Test case: MAC_IPV6_ESP: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +#. DUT create rule for the RSS type for MAC_IPV6_ESP:: > + > + testpmd>flow create 0 ingress pattern eth / ipv6 / esp / end act= ions rss > types esp end key_len 0 queues end / end > + testpmd>start > + > +#. Tester use scapy to send the 100 MAC_IPV6_ESP pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(nh=3D50)/ESP(spi=3D11)/Raw('= x'*480 > )], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in differently 16 queues evenly with differently RSS hash value:: > + > + testpmd> stop > + > +#. check the flow can be listed and destory rule on port 0:: > + > + testpmd> flow list 0 > + ID Group Prio Attr Rule > + 0 0 0 i-- ETH IPV6 ESP =3D> RSS > + testpmd> flow flush 0 > + > +#. Tester use scapy to send the 100 MAC_IPV6_ESP pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(nh=3D50)/ESP(spi=3D11)/Raw('= x'*480 > )], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in the same queue. > + > +Test case: MAC_IPV4_AH: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +#. DUT create rule for the RSS type for MAC_IPV4_AH:: > + > + testpmd>flow create 0 ingress pattern eth / ipv4 / ah / end acti= ons rss > types esp end key_len 0 queues end / end > + testpmd>start > + > +#. Tester use scapy to send the 100 MAC_IPV4_AH pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(proto=3D51)/AH(spi=3D11)/Raw('= x'*480 > )], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in differently 16 queues evenly with differently RSS hash value:: > + > + testpmd> stop > + > +#. check the flow can be listed and destory rule on port 0:: > + > + testpmd> flow list 0 > + ID Group Prio Attr Rule > + 0 0 0 i-- ETH IPV4 AH =3D> RSS > + testpmd> flow flush 0 > + > +#. Tester use scapy to send the 100 MAC_IPV4_AH pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(proto=3D51)/AH(spi=3D11)/Raw('= x'*480 > )], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in the same queue. > + > +Test case: MAC_IPV6_AH: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +#. DUT create rule for the RSS type for MAC_IPV6_AH:: > + > + testpmd>flow create 0 ingress pattern eth / ipv6 / ah / end acti= ons rss > types esp end key_len 0 queues end / end > + testpmd>start > + > +#. Tester use scapy to send the 100 MAC_IPV6_AH pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(nh=3D51)/AH(spi=3D11)/Raw('x= '*480) > ], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in differently 16 queues evenly with differently RSS hash value:: > + > + testpmd> stop > + > +#. check the flow can be listed and destory rule on port 0:: > + > + testpmd> flow list 0 > + ID Group Prio Attr Rule > + 0 0 0 i-- ETH IPV6 AH =3D> RSS > + testpmd> flow flush 0 > + > +#. Tester use scapy to send the 100 MAC_IPV6_AH pkts with different > session ID:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(nh=3D51)/AH(spi=3D11)/Raw('x= '*480) > ], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in the same queue. > + > Test case: SIMPLE_XOR: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > #. create rule for the rss type simple_xor:: > @@ -3651,6 +3844,36 @@ Test case: Use OS default package for the > MAC_IPV4_GTPU_FRAG and IPV4 L3 src onl > iavf_flow_create(): Failed to create flow > port_flow_complain(): Caught PMD error type 2 (flow rule (handle= )): > Failed to create parser engine.: Invalid argument >=20 > +Test case: Use OS default package for the MAC_IPV4_L2TPv3: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > +#. Load OS package > + > +#. Create rule for the rss type MAC_IPV4_L2TPv3:: > + > + testpmd>flow create 0 ingress pattern eth / ipv4 / l2tpv3oip / > + end actions rss types l2tpv3 end key_len 0 queues end / end > + > +#. Tester use scapy to send the 100 MAC_IPV4_L2TPv3 pkts with different > session ID:: > + > + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3", > proto=3D115)/L2TP('\x00\x00\x00\x11')/Raw('x'*480)], iface=3D"enp134s0f0"= ) > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in the same queue. > + > +Test case: Use OS default package for the MAC_IPV6_ESP: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > +#. Load OS package > + > +#. Create rule for the rss type MAC_IPV6_ESP:: > + > + testpmd>flow create 0 ingress pattern eth / ipv6 / esp / end > + actions rss types l2tpv3 end key_len 0 queues end / end > + > +#. Tester use scapy to send the 100 MAC_IPV6_ESP pkts with different spi= :: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(nh=3D50)/ESP(spi=3D11)/Raw('= x'*480 > )], iface=3D"enp134s0f0") > + ... > + > +#. Verify 100 pkts has been sent, and check the 100 pkts has been reciev= ed > by DUT in the same queue. > + > Test case: Check rssh hash in mutil VFS > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1. Generate 2 VFs on PF0 and set mac address for each VF:: > @@ -3887,5 +4110,6 @@ both of the rules can't be created successfully. >=20 >=20 >=20 > + >=20 > - > \ No newline at end of file > + > -- > 2.17.1