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 9A200A0350; Sun, 28 Jun 2020 08:38:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 90ACE1C1B2; Sun, 28 Jun 2020 08:38:30 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 7078F1C036 for ; Sun, 28 Jun 2020 08:38:29 +0200 (CEST) IronPort-SDR: j6vaxodsWPZC4KYO4L2UZDI9NXeR6jLRM4aBwZFnaBFAzWcNIqfAaMoT3obNTLmZFVOLjT9tBx Ss2tgFTUVX/w== X-IronPort-AV: E=McAfee;i="6000,8403,9665"; a="145798733" X-IronPort-AV: E=Sophos;i="5.75,290,1589266800"; d="scan'208";a="145798733" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2020 23:38:28 -0700 IronPort-SDR: ZNZ9DvyanQCfHJJSrJ/XBBDmaerRLBEig0kizuKcc+8EZSNYcyzVA48sNs7fZAbwiktpv0uHiu GPbyTvHEml7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,290,1589266800"; d="scan'208";a="320365784" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jun 2020 23:38:28 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 27 Jun 2020 23:38:27 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 27 Jun 2020 23:38:27 -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; Sun, 28 Jun 2020 14:38:24 +0800 From: "Tu, Lijuan" To: "He, Zhiwei" , "dts@dpdk.org" CC: "He, Zhiwei" Thread-Topic: [dts] [PATCH] test_plans:Add c-vlan in the rule settings in the test plan and delet frag following the dpdk code change Thread-Index: AQHWSGFXacGnuH/P+0iSOyHxly40tKjtnKWw Date: Sun, 28 Jun 2020 06:38:23 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC6594D@SHSMSX101.ccr.corp.intel.com> References: <1592807750-7150-1-git-send-email-zhiwei.he@intel.com> In-Reply-To: <1592807750-7150-1-git-send-email-zhiwei.he@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] test_plans:Add c-vlan in the rule settings in the test plan and delet frag following the dpdk code change 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 zhiwei.he Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B22=1B$BF|=1B(B 14:36 To: dts@dpdk.org Cc: He, Zhiwei Subject: [dts] [PATCH] test_plans:Add c-vlan in the rule settings in the te= st plan and delet frag following the dpdk code change From: "zhiwei.he" Signed-off-by: zhiwei.he --- test_plans/cvl_advanced_iavf_rss_test_plan.rst | 118 ++++++++++++---------= ---- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/test_plans/cvl_advanced_iavf_rss_test_plan.rst b/test_plans/cv= l_advanced_iavf_rss_test_plan.rst index 3fd8882..20a9cc6 100644 --- a/test_plans/cvl_advanced_iavf_rss_test_plan.rst +++ b/test_plans/cvl_advanced_iavf_rss_test_plan.rst @@ -402,7 +402,7 @@ Test case: MAC_IPV4_L3DST: testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rs= s types l3-dst-only end key_len 0 queues end / end testpmd> start =20 -#. send the 100 IP +frag type pkts:: +#. send the 100 IP type pkts:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(dst=3DRandIP())/("X"*48= 0)], iface=3D"enp177s0f1", count=3D100) testpmd> stop @@ -411,16 +411,16 @@ Test case: MAC_IPV4_L3DST: =20 #. No match case:: #. send the 100 IP change to l3-src-only packages and match to the rule:: - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst= =3D"192.168.0.5",frag=3D5)/SCTP(sport=3DRandShort())/("X" * 80)], iface=3D"= enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.5")/SCTP(sport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value. #. send the 100 IP change to l3-src-only packages:: =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.2",ds= t=3D"192.168.0.5",frag=3D5)/SCTP(sport=3DRandShort())/("X" * 80)], iface=3D= "enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.2",dst=3D"192= .16 + 8.0.5")/SCTP(sport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value, but hash value should keep to first ha= sh value, because the l3 src has no changed. =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",ds= t=3D"192.168.0.8",frag=3D5)/SCTP(sport=3DRandShort())/("X" * 80)], iface=3D= "enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.8")/SCTP(sport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value, but hash value should different to pre= vious hash value, because the l3 dst has changed. =20 @@ -463,7 +463,7 @@ Test case: MAC_IPV4_L3SRC_FRAG_ICMP: #. Destory rule on port 0=20 testpmd> flow flush 0 =20 -Test case: MAC_IPV4_L3DST_FRAG_ICMP: +Test case: MAC_IPV4_L3DST_ICMP: =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 #. create rule for the rss type for l3 dst only:: =20 @@ -480,16 +480,16 @@ Test case: MAC_IPV4_L3DST_FRAG_ICMP: =20 #. No match case:: #. send the 100 IP change to l3-dst-only packages and match to the rule:: - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst= =3D"192.168.0.5",frag=3D5)/ICMP()/("X" * 80)], iface=3D"enp177s0f1", count= =3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.5")/ICMP()/("X" * 80)], iface=3D"enp177s0f1", count=3D100) =20 #. Expected got a fixed Hash value. =09 #. send the 100 IP change to l3-src-only packages:: =20 =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.2",dst= =3D"192.168.0.5",frag=3D5)/ICMP()/("X" * 80)], iface=3D"enp177s0f1", count= =3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.2",dst=3D"192= .16 + 8.0.5")/ICMP()/("X" * 80)], iface=3D"enp177s0f1", count=3D100) =20 #. Expected got a fixed Hash value, but hash value should keep to previous= hash value, because the l3 dst has no changed. =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst= =3D"192.168.0.8",frag=3D5)/ICMP()/("X" * 80)], iface=3D"enp177s0f1", count= =3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.8")/ICMP()/("X" * 80)], iface=3D"enp177s0f1", count=3D100) =20 #. Expected got a fixed Hash value, but hash value should different to fir= st hash value, because the l3 dst has changed. =20 @@ -749,16 +749,16 @@ Test case: MAC_IPV4_UDP: =20 #. No match case:: #. send the 100 IP change to l3-src-only packages and match to the rule:: - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst= =3D"192.168.0.5",frag=3D5)/UDP(sport=3D22,dport=3D33)/("X" * 80)], iface=3D= "enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.5")/UDP(sport=3D22,dport=3D33)/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value. #. send the 100 IP change to l3-src-only and l4 dport packages:: =20 =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.4",ds= t=3D"192.168.0.5",frag=3D5)/UDP((sport=3D22,dport=3D55)/("X" * 80)], iface= =3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.4",dst=3D"192= .16 + 8.0.5")/UDP((sport=3D22,dport=3D55)/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value, but hash value should different to pre= vious hash value, because the l3 src and l4 dst has changed. =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",d= st=3D"192.168.0.9",frag=3D5)/UDP(sport=3D16,dport=3D33)/("X" * 80)], iface= =3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.9")/UDP(sport=3D16,dport=3D33)/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value, but hash value should keep to first ha= sh value, because the l3 src and l4 dst has no changed. =20 @@ -767,9 +767,9 @@ Test case: MAC_IPV4_UDP: #. Destory rule on port 0=20 testpmd> flow flush 0 =20 -Test case: MAC_IPV4_UDP_FRAG: +Test case: MAC_IPV4_L3_UDP_L4: =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 -#. create rule for the rss type is ipv4 +UDP +frag:: +#. create rule for the rss type is ipv4 +UDP:: =20 testpmd> flow create 0 ingress pattern eth / ipv4 / udp / end acti= ons rss types ipv4-udp end key_len 0 queues end / end testpmd> start @@ -845,11 +845,11 @@ Test case: MAC_IPV6_UDP: #. Destory rule on port 0=20 testpmd> flow flush 0 =20 -Test case: MAC_IPV6_UDP_FRAG: =20 +Test case: MAC_IPV6_L3SRC_UDP: =20 =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 #. To send IPV6 pkts with IPV6 src +frag +UDP port:: =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3DRandIP6())/IPv6= ExtHdrFragment()/UDP(sport=3DRandShort(),dport=3DRandShort())/("X" * 80)], = iface=3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3DRandIP6())/UDP(sport= =3DRa + ndShort(),dport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) testpmd> stop =20 #. verify 100 pkts has sent, and to check the 100 pkts has send to differe= ntly totaly 16 queues evenly with @@ -858,8 +858,8 @@ Test case: MAC_IPV6_U= DP_FRAG: #. Destory rule on port 0=20 testpmd> flow flush 0 =20 -Test case: MAC_IPV4_TCP_FRAG: -=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 +Test case: MAC_IPV4_TCP_L3SRC_L4DST: +=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 #. create rule for the rss type is IPV4 + TCP L3 src and L4 dst type hash= :: =20 testpmd>flow create 0 ingress pattern eth / ipv4 / tcp / end actio= ns rss types l3-src-only l4-dst-only end key_len 0 queues end / end @@ -875= ,16 +875,16 @@ Test case: MAC_IPV4_TCP_FRAG: =20 #. No match case:: #. send the 100 IP change to l3-src-only packages and match to the rule:: - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst= =3D"192.168.0.5",frag=3D5)/TCP(sport=3D22,dport=3D33)/("X" * 80)], iface=3D= "enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.5")/TCP(sport=3D22,dport=3D33)/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value. #. send the 100 IP change to l3-src-only and l4 dport packages:: =20 =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.4",dst= =3D"192.168.0.5",frag=3D5)/TCP((sport=3D22,dport=3D55)/("X" * 80)], iface= =3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.4",dst=3D"192= .16 + 8.0.5")/TCP((sport=3D22,dport=3D55)/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value, but hash value should different to pre= vious hash value, because the l3 src and l4 dst has changed. =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst= =3D"192.168.0.9",frag=3D5)/TCP(sport=3D16,dport=3D33)/("X" * 80)], iface=3D= "enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.9")/TCP(sport=3D16,dport=3D33)/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value, but hash value should keep to first ha= sh value, because the l3 src and l4 dst has no changed. =20 @@ -910,9 +910,9 @@ Test case: MAC_IPV4_TCP_PAY =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3DRandIP(),dst=3DRa= ndIP())/TCP()/("X"*480)], iface=3D"enp177s0f1", count=3D100) =20 -#. To send IPV4 pkts with IP src and dst +frag and without TCP port:: +#. To send IPV4 pkts with IP src and dst and without TCP port:: =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3DRandIP(),dst=3DRa= ndIP(),frag=3D4)/TCP(sport=3DRandShort(),dport=3DRandShort())/("X"*480)], i= face=3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3DRandIP(),dst=3DRandIP())= /TC + P(sport=3DRandShort(),dport=3DRandShort())/("X"*480)], iface=3D"enp177s0f= 1",=20 + count=3D100) testpmd> stop =20 #. verify 100 pkts has sent, and to check the 100 pkts has send to differe= ntly totaly 16 queues evenly with @@ -976,7 +976,7 @@ Test case: MAC_IPV6_T= CP #. Destory rule on port 0=20 testpmd> flow flush 0 =20 -Test case: MAC_IPV6_TCP_FRAG: +Test case: MAC_IPV6_TCP_L3_l4: =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 #. Create rule for the rss IPV6 tcp::=20 =20 @@ -984,7 +984,7 @@ Test case: MAC_IPV6_TCP_FRAG: testpmd>start =20 #. To send ipv6 pkts and IPV6 frag:: - sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3DRandIP6(),dst= =3DRandIP6())/IPv6ExtHdrFragment()/TCP(sport=3DRandShort(),dport=3DRandShor= t())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3DRandIP6(),dst=3DRandIP= 6() + )/TCP(sport=3DRandShort(),dport=3DRandShort())/("X" * 80)],=20 + iface=3D"enp177s0f1", count=3D100) testpmd> stop =20 #. verify 100 pkts has sent, and to check the 100 pkts has send to differe= ntly totaly 16 queues evenly with @@ -1009,15 +1009,15 @@ Test case: MAC_IP= V4_SCTP: =20 #. No match case:: #. send the 100 IP change to l3-src-only packages and match to the rule:: - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst= =3D"192.168.0.5",frag=3D5)/SCTP(sport=3D22,dport=3D33)/("X" * 80)], iface= =3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.5")/SCTP(sport=3D22,dport=3D33)/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value. #. send the 100 IP change to l3-src-only and l4 dport packages:: =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.4",ds= t=3D"192.168.0.5",frag=3D5)/SCTP((sport=3D22,dport=3D55)/("X" * 80)], iface= =3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.4",dst=3D"192= .16 + 8.0.5")/SCTP((sport=3D22,dport=3D55)/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value, but hash value should different to pre= vious hash value, because the l3 src and l4 dst has changed. =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",ds= t=3D"192.168.0.9",frag=3D5)/SCTP(sport=3D16,dport=3D33)/("X" * 80)], iface= =3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",dst=3D"192= .16 + 8.0.9")/SCTP(sport=3D16,dport=3D33)/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) =20 #. Expected got a fixed Hash value, but hash value should keep to first ha= sh value, because the l3 src and l4 dst has no changed. testpmd> stop @@ -1095,7 +1095,7 @@ Test case: MAC_IPV6_SCTP_PAY: =20 #. to send IPV6 pkts includ frag:: =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3DRandIP6())/IPv6= ExtHdrFragment()/SCTP(sport=3DRandShort(),dport=3DRandShort())/("X" * 80)],= iface=3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3DRandIP6())/SCTP(sport= =3DR + andShort(),dport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1",=20 + count=3D100) testpmd> stop =20 #. verify 100 pkts has sent, and to check the 100 pkts has send to differe= ntly totaly 16 queues evenly with @@ -1710,7 +1710,7 @@ Test case: MAC_IPV4= _CVLAN: =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 #. Create rule for the rss type cVLAN and hash l3 src keywords:: =20 - testpmd>flow create 0 ingress pattern eth / ipv4 / end actions rss= types c-vlan end key_len 0 queues end / end + testpmd>flow create 0 ingress pattern eth / vlan / ipv4 / end=20 + actions rss types c-vlan end key_len 0 queues end / end testpmd>start =20 #. To send C-VLAN pkts WITH CTAG8100:: @@ -2181,11 +2181,11 @@ Test case: SYMMETRIC_TOEPLITZ_NVGRE_IPV6_UDP: testpmd>flow create 0 ingress pattern eth / ipv6 / udp / end actio= ns rss func symmetric_toeplitz types ipv6-udp end key_len 0 queues end / en= d testpmd>start =20 -#. to send ipv6 pkts with fix nvgre pkts with fixed address and includ ipv= 6 frag and UDP ports:: +#. to send ipv6 pkts with fix nvgre pkts with fixed address and includ ipv= 6 and UDP ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/NVGRE()/Ether()/IPv6(= src=3D"CDCD:910A:2222:5498:8475:1111:3900:2020",dst=3D"ABAB:910B:6666:3457:= 8295:3333:1800:2929")/UDP(sport=3D30,dport=3D32)/("X"*480)],iface=3D"enp177= s0f1",count=3D100) =20 -#. to send ip pkts with fix IPv6 includ frag and switch src and dst ip add= ress and udp ports:: +#. to send ip pkts with fix IPv6 includ switch src and dst ip address and = udp ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/NVGRE()/Ether()/IPv6(= src=3D"ABAB:910B:6666:3457:8295:3333:1800:2929",dst=3D"CDCD:910A:2222:5498:= 8475:1111:3900:2020")/UDP(sport=3D32,dport=3D33)/("X"*480)],iface=3D"enp177= s0f1",count=3D100) testpmd> stop @@ -2202,11 +2202,11 @@ Test case: SYMMETRIC_TOEPLITZ_NVGRE_IPV6_TCP: testpmd>flow create 0 ingress pattern eth / ipv6 / tcp / end actio= ns rss func symmetric_toeplitz types ipv6-tcp end key_len 0 queues end / en= d testpmd>start =20 -#. to send ipv6 pkts with fix nvgre pkts with fixed address and includ ipv= 6 frag and tcp ports:: +#. to send ipv6 pkts with fix nvgre pkts with fixed address and includ ipv= 6 and tcp ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/NVGRE()/Ether()/IPv6(= src=3D"CDCD:910A:2222:5498:8475:1111:3900:2020",dst=3D"ABAB:910B:6666:3457:= 8295:3333:1800:2929")/TCP(sport=3D30,dport=3D32)/("X"*480)],iface=3D"enp177= s0f1",count=3D100) =20 -#. to send ip pkts with fix IPv6 includ frag and switch src and dst ip add= ress and tcp ports:: +#. to send ip pkts with fix IPv6 includ switch src and dst ip address and = tcp ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/NVGRE()/Ether()/IPv6(= src=3D"ABAB:910B:6666:3457:8295:3333:1800:2929",dst=3D"CDCD:910A:2222:5498:= 8475:1111:3900:2020")/TCP(sport=3D32,dport=3D33)/("X"*480)],iface=3D"enp177= s0f1",count=3D100) testpmd> stop @@ -2223,11 +2223,11 @@ Test case: SYMMETRIC_TOEPLITZ_NVGRE_IPV6_SCTP testpmd>flow create 0 ingress pattern eth / ipv6 / sctp / end acti= ons rss func symmetric_toeplitz types ipv6-sctp end key_len 0 queues end / = end testpmd>start =20 -#. to send ipv6 pkts with fix nvgre pkts with fixed address and includ ipv= 6 frag and SCTP ports:: +#. to send ipv6 pkts with fix nvgre pkts with fixed address and includ ipv= 6 and SCTP ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/NVGRE()/Ether()/IPv6(= src=3D"CDCD:910A:2222:5498:8475:1111:3900:2020",dst=3D"ABAB:910B:6666:3457:= 8295:3333:1800:2929")/SCTP(sport=3D30,dport=3D32)/("X"*480)],iface=3D"enp17= 7s0f1",count=3D100) =20 -#. to send ip pkts with fix IPv6 includ frag and switch src and dst ip add= ress and SCTP ports:: +#. to send ip pkts with fix IPv6 includ switch src and dst ip address and = SCTP ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/NVGRE()/Ether()/IPv6(= src=3D"ABAB:910B:6666:3457:8295:3333:1800:2929",dst=3D"CDCD:910A:2222:5498:= 8475:1111:3900:2020")/SCTP(sport=3D32,dport=3D33)/("X"*480)],iface=3D"enp17= 7s0f1",count=3D100) testpmd> stop @@ -2245,11 +2245,11 @@ Test case: SYMMETRIC_TOEPLITZ_NVGRE_IPV6_ICMP: testpmd>flow create 0 ingress pattern eth / ipv6 / end actions rss= func symmetric_toeplitz types ipv6 end key_len 0 queues end / end testpmd>start =20 -#. to send ipv6 pkts with fix nvgre pkts with fixed address and includ ipv= 6 frag and ICMP ports:: +#. to send ipv6 pkts with fix nvgre pkts with fixed address and includ ipv= 6 and ICMP ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/NVGRE()/Ether()/IPv6(= src=3D"CDCD:910A:2222:5498:8475:1111:3900:2020",dst=3D"ABAB:910B:6666:3457:= 8295:3333:1800:2929")/ICMP()/("X"*480)],iface=3D"enp177s0f1",count=3D100) =20 -#. to send ip pkts with fix IPv6 includ frag and switch src and dst ip add= ress and ICMP ports:: +#. to send ip pkts with fix IPv6 includ switch src and dst ip address and = ICMP ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/NVGRE()/Ether()/IPv6(= src=3D"ABAB:910B:6666:3457:8295:3333:1800:2929",dst=3D"CDCD:910A:2222:5498:= 8475:1111:3900:2020")/ICMP()/("X"*480)],iface=3D"enp177s0f1",count=3D100) testpmd> stop @@ -2266,11 +2266,11 @@ Test case: SYMMETRIC_TOEPLITZ_VXLAN_IPV6_UDP: testpmd>flow create 0 ingress pattern eth / ipv6 / udp / end actio= ns rss func symmetric_toeplitz types ipv6-udp end key_len 0 queues end / en= d testpmd>start =20 -#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 frag and UDP ports:: +#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 and UDP ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6()/UDP()/VXLAN()/Ether= ()/IPv6(src=3D"CDCD:910A:2222:5498:8475:1111:3900:2020",dst=3D"ABAB:910B:66= 66:3457:8295:3333:1800:2929")/UDP(sport=3D30,dport=3D32)/("X"*480)],iface= =3D"enp177s0f1",count=3D100) =20 -#. to send VXLAN pkts with fix IPv6 includ frag and switch src and dst ip = address and UDP ports:: +#. to send VXLAN pkts with fix IPv6 includ switch src and dst ip address a= nd UDP ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6()/UDP()/VXLAN()/Ether= ()/IPv6(src=3D"ABAB:910B:6666:3457:8295:3333:1800:2929",dst=3D"CDCD:910A:22= 22:5498:8475:1111:3900:2020")/UDP(sport=3D32,dport=3D33)/("X"*480)],iface= =3D"enp177s0f1",count=3D100) testpmd> stop @@ -2288,11 +2288,11 @@ Test case: SYMMETRIC_TOEPLITZ_VXLAN_IPV6: testpmd>flow create 0 ingress pattern eth / ipv6 / end actions rss= func symmetric_toeplitz types ipv6 end key_len 0 queues end / end testpmd>start =20 -#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 frag:: +#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 :: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/UDP()/VXLAN()/Ether()= /IPv6(src=3D"CDCD:910A:2222:5498:8475:1111:3900:2020",dst=3D"ABAB:910B:6666= :3457:8295:3333:1800:2929")/("X"*480)],iface=3D"enp177s0f1",count=3D100) =20 -#. to send VXLAN pkts with fix IPv6 includ frag and switch src and dst ip = address:: +#. to send VXLAN pkts with fix IPv6 includ switch src and dst ip address:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IP()/UDP()/VXLAN()/Ether()= /IPv6(src=3D"ABAB:910B:6666:3457:8295:3333:1800:2929",dst=3D"CDCD:910A:2222= :5498:8475:1111:3900:2020")/("X"*480)],iface=3D"enp177s0f1",count=3D100) testpmd> stop @@ -2309,11 +2309,11 @@ Test case: SYMMETRIC_TOEPLITZ_VXLAN_IPV6_TCP: testpmd>flow create 0 ingress pattern eth / ipv6 / tcp / end actio= ns rss func symmetric_toeplitz types ipv6-tcp end key_len 0 queues end / en= d testpmd>start =20 -#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 frag and tcp ports:: +#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 and tcp ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6()/UDP()/VXLAN()/Ether= ()/IPv6(src=3D"CDCD:910A:2222:5498:8475:1111:3900:2020",dst=3D"ABAB:910B:66= 66:3457:8295:3333:1800:2929")/TCP(sport=3D30,dport=3D32)/("X"*480)],iface= =3D"enp177s0f1",count=3D100) =20 -#. to send VXLAN pkts with fix IPv6 includ frag and switch src and dst ip = address and tcp ports:: +#. to send VXLAN pkts with fix IPv6 includ switch src and dst ip address a= nd tcp ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6()/UDP()/VXLAN()/Ether= ()/IPv6(src=3D"ABAB:910B:6666:3457:8295:3333:1800:2929",dst=3D"CDCD:910A:22= 22:5498:8475:1111:3900:2020")/TCP(sport=3D32,dport=3D33)/("X"*480)],iface= =3D"enp177s0f1",count=3D100) testpmd> stop @@ -2330,11 +2330,11 @@ Test case: SYMMETRIC_TOEPLITZ_VXLAN_IPV6_SCTP: testpmd>flow create 0 ingress pattern eth / ipv6 / sctp / end acti= ons rss func symmetric_toeplitz types ipv6-sctp end key_len 0 queues end / = end testpmd>start =20 -#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 frag and sctp ports:: +#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 and sctp ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6()/UDP()/VXLAN()/Ether= ()/IPv6(src=3D"CDCD:910A:2222:5498:8475:1111:3900:2020",dst=3D"ABAB:910B:66= 66:3457:8295:3333:1800:2929")/SCTP(sport=3D30,dport=3D32)/("X"*480)],iface= =3D"enp177s0f1",count=3D100) =20 -#. to send VXLAN pkts with fix IPv6 includ frag and switch src and dst ip = address and sctp ports:: +#. to send VXLAN pkts with fix IPv6 includ switch src and dst ip address a= nd sctp ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6()/UDP()/VXLAN()/Ether= ()/IPv6(src=3D"ABAB:910B:6666:3457:8295:3333:1800:2929",dst=3D"CDCD:910A:22= 22:5498:8475:1111:3900:2020")/SCTP(sport=3D32,dport=3D30)/("X"*480)],iface= =3D"enp177s0f1",count=3D100) testpmd> stop @@ -2351,11 +2351,11 @@ Test case: SYMMETRIC_TOEPLITZ_VXLAN_IPV6_ICMP: testpmd>flow create 0 ingress pattern eth / ipv6 / end actions rss= func symmetric_toeplitz types ipv6 end key_len 0 queues end / end testpmd>start =20 -#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 frag and ICMP ports:: +#. to send ipv6 pkts with fix vxlan pkts with fixed address and includ ipv= 6 and ICMP ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6()/UDP()/VXLAN()/Ether= ()/IPv6(src=3D"CDCD:910A:2222:5498:8475:1111:3900:2020",dst=3D"ABAB:910B:66= 66:3457:8295:3333:1800:2929")/ICMP()/("X"*480)],iface=3D"enp177s0f1",count= =3D100) =20 -#. to send VXLAN pkts with fix IPv6 includ frag and switch src and dst ip = address and icmp ports:: +#. to send VXLAN pkts with fix IPv6 includ switch src and dst ip address a= nd icmp ports:: =20 sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6()/UDP()/VXLAN()/Ether= ()/IPv6(src=3D"ABAB:910B:6666:3457:8295:3333:1800:2929",dst=3D"CDCD:910A:22= 22:5498:8475:1111:3900:2020")/ICMP()/("X"*480)],iface=3D"enp177s0f1",count= =3D100) testpmd> stop @@ -3897,7 +3897,7 @@ Test case: Error handle MAC_IPV4_UDP for the invalid = pattern: =20 Test case: Error handle MAC_IPV4_TCP for the invalid pattern: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -#. create rule for the rss type is IPV4 l3 src +NVGRE inner IPV4 +frag + I= CMP:: +#. create rule for the rss type is IPV4 l3 src +NVGRE inner IPV4 + ICMP:: =20 testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss ty= pes ipv4-tcp l3-src-only end key_len 0 queues end / end =20 @@ -3905,7 +3905,7 @@ Test case: Error handle MAC_IPV4_TCP for the invalid = pattern: iavf_flow_create(): Failed to create flow port_flow_complain(): Caught PMD error type 2 (flow rule (handle)): Fa= iled to create parser engine.: Invalid argument =20 -Test case 2: VF reset on set RSS case MAC_IPV4_L3DST_FRAG: +Test case 2: VF reset on set RSS case MAC_IPV4_L3DST: =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 #. Generate 1 VFs on PF modprobe vfio-pci=09 @@ -3928,11 +3928,11 @@ Test case 2: VF reset on set RSS case MAC_IPV4_L3DS= T_FRAG: testpmd> start testpmd> show port 0 rss-hash RSS functions: - all ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ip udp t= cp sctp + all ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ip udp tcp sctp =20 -#. send the 100 IP frag pkts:: +#. send the 100 IP pkts:: =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(dst=3DRandIP(), frag=3D5)/= SCTP(sport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(dst=3DRandIP())/SCTP(sport=3DR= and + Short())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) =20 testpmd> stop =20 @@ -3951,9 +3951,9 @@ Test case 2: VF reset on set RSS case MAC_IPV4_L3DST_= FRAG: testpmd> start =20 #. Expected the port can be stop/reset/start normally without error messag= e. -#. send the 100 IP frag pkts:: +#. send the 100 IP pkts:: =20 - sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(dst=3DRandIP(), frag=3D5)/= SCTP(sport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(dst=3DRandIP())/SCTP(sport=3DR= and + Short())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) testpmd> stop =20 =20 @@ -3978,9 +3978,9 @@ Test case 2: VF reset on set RSS case MAC_IPV4_L3DST_= FRAG: testpmd> start #. to check the port can be stop/reset/start normally without error messag= e. check the rule status is valid -#. send the 100 IP frag pkts:: +#. send the 100 IP pkts:: =20 - sendp([Ether(dst=3D"000:11:33:44:66:77")/IP(dst=3DRandIP(), frag=3D5)= /SCTP(sport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"000:11:33:44:66:77")/IP(dst=3DRandIP())/SCTP(sport=3D= Ran + dShort())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) testpmd> stop #. check the verify 100 pkts has received in VF0, and the RSS hash value s= hould work, due to the after reset mac to the rss has set to default enabl= e status. =20 @@ -4060,7 +4060,7 @@ To check MAC_IPV4_UDP in VF1 with a fix IP address an= d port =20 #. Destory rule on port 0=20 testpmd> flow flush 0 =20 -Test case: Use OS default package for the MAC_IPV4_GTPU_FRAG and IPV4 L3 s= rc only : +Test case: Use OS default package for the MAC_IPV4_GTPU and IPV4 L3 src on= ly : =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=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 GTPU and hash l3 src keywords:: @@ -4130,9 +4130,9 @@ Test case: Check rssh hash in mutil VFS =20 =20 3. to send 100 packages to the VF1 with VF1 mac - sendp([Ether(dst=3D"00:11:55:66:77:88")/IP(dst=3DRandIP(), frag=3D5)/S= CTP(sport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:55:66:77:88")/IP(dst=3DRandIP())/SCTP(sport=3DR= and + Short())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) =20 - sendp([Ether(dst=3D"00:11:55:66:77:88")/IP(src=3DRandIP(), frag=3D5)/S= CTP(sport=3DRandShort())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) + =20 + sendp([Ether(dst=3D"00:11:55:66:77:88")/IP(src=3DRandIP())/SCTP(sport=3DR= and + Short())/("X" * 80)], iface=3D"enp177s0f1", count=3D100) =20 Expect: RSS should work in VF1 and VF1 should received these 100 RSS ha= sh packages , because the rss hash has enable default on VF1 But VF0 should not recevied rss pakcages. -- 1.8.3.1