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 78D23A0518; Fri, 24 Jul 2020 03:30:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F2A61C029; Fri, 24 Jul 2020 03:30:27 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id CF6541C025 for ; Fri, 24 Jul 2020 03:30:25 +0200 (CEST) IronPort-SDR: wdGBA1khiJJ5klI344U1X3k+6G1v2msCaBvOYtbMxDptrcw30lmIC99jAB6s3fTMbz2J+zx20U qI1W0EUTTnHQ== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="148565335" X-IronPort-AV: E=Sophos;i="5.75,388,1589266800"; d="scan'208";a="148565335" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 18:30:23 -0700 IronPort-SDR: WS+GwYWSwts2JDTskTE0QUlMxpT47+ZkIBQd1HWB5QD15O0tiLTMAGVw/CaaZ0ffRTpoPbjyyB EvoBn+3+JEzw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,388,1589266800"; d="scan'208";a="488572136" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga006.fm.intel.com with ESMTP; 23 Jul 2020 18:30:24 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Jul 2020 18:30:24 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Jul 2020 18:30:24 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.22]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.8]) with mapi id 14.03.0439.000; Fri, 24 Jul 2020 09:30:20 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH]test_plans: change case for bug dpdk-20053 and dpdk-22078 Thread-Index: AQHWW2DswQleOLU/90ie5zFQ+GU8y6kV/TQQ Date: Fri, 24 Jul 2020 01:30:20 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC83E5B@SHSMSX101.ccr.corp.intel.com> References: <1594923009-9268-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1594923009-9268-1-git-send-email-yuan.peng@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: change case for bug dpdk-20053 and dpdk-22078 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 Peng Yuan > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B17=1B$BF|=1B(B 2:10 > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH]test_plans: change case for bug dpdk-20053 and dpdk= - > 22078 >=20 > change case for consistant to the dpdk patch of dpdk-20053. > add case to verify the bug dpdk-22078. >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/test_plans/iavf_fdir_test_plan.rst b/test_plans/iavf_fdir_te= st_plan.rst > index 1a24773..eb35b8c 100644 > --- a/test_plans/iavf_fdir_test_plan.rst > +++ b/test_plans/iavf_fdir_test_plan.rst > @@ -2270,6 +2270,7 @@ Subcase 6: conflicted rules 1. Create a FDIR rule:= : >=20 > flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is = 192.168.0.21 > ttl is 2 tos is 4 / end actions queue index 1 / end > + flow create 0 ingress pattern eth / ipv6 dst is > + CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / end actions > + queue index 1 / mark / end >=20 > the rule is created successfully. >=20 > @@ -2277,10 +2278,38 @@ Subcase 6: conflicted rules >=20 > flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is = 192.168.0.21 > ttl is 2 tos is 4 / end actions queue index 2 / end > flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is = 192.168.0.21 > ttl is 2 tos is 4 / end actions drop / end > + flow create 0 ingress pattern eth / ipv6 dst is > CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / end actions queu= e > index 2 / mark / end > + flow create 0 ingress pattern eth / ipv6 dst is > + CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / end actions > + rss queues 2 3 end / mark / end >=20 > Failed to create the two flows, report message:: >=20 > - Add filter rule failed.: Operation not permitted > + iavf_fdir_add(): Failed to add rule request due to the rule is alrea= dy existed > + 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 > + > +3. Create a rule with same pattern but different input set:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.21 ttl is = 2 tos is 4 / > end actions queue index 3 / mark / end > + flow create 0 ingress pattern eth / ipv6 dst is > + CDCD:910A:2222:5498:8475:1111:3900:2021 / end actions mark / end > + > + Failed to create the flow, report message:: > + > + iavf_fdir_add(): Failed to add rule request due to the rule is confl= ict with > existing rule > + 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 > + > +3. Create a rule with conflicted patterns:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.22 / udp src is 10 dst is 20 / end actions queue index 4 / mark= id 4 / > end > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.23 ttl is 2 tos is 4 / udp src is 10 dst is 20 / end actions qu= eue index 5 / > mark id 5 / end > + flow create 0 ingress pattern eth / ipv6 dst is > CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / udp src is 22 ds= t is > 23 / end actions queue index 1 / mark / end > + flow create 0 ingress pattern eth / ipv6 dst is > + CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::3 / udp src is 22 > + dst is 23 / end actions queue index 1 / mark / end > + > + Failed to create the two flows, report message:: > + > + iavf_fdir_add(): Failed to add rule request due to the rule is confl= ict with > existing rule > + 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 > 3. check there is only one rule listed. >=20 > @@ -2922,66 +2951,64 @@ Subcase 5: 128 profiles >=20 > 2. create 10 rules with different patterns on each port:: >=20 > - flow create 0 ingress pattern eth / ipv4 proto is 255 / end actions = queue index > 1 / mark / end > flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is = 192.168.0.21 > / udp src is 22 dst is 23 / end actions queue index 1 / mark / end > flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is = 192.168.0.21 > / tcp src is 22 dst is 23 / end actions queue index 1 / mark / end > flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is = 192.168.0.21 > / sctp src is 22 dst is 23 / end actions queue index 1 / mark / end > - flow create 0 ingress pattern eth / ipv6 proto is 0 / end actions ma= rk / rss / > end > flow create 0 ingress pattern eth / ipv6 dst is > CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / udp src is 22 ds= t is > 23 / end actions queue index 1 / mark / end > flow create 0 ingress pattern eth / ipv6 dst is > CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / tcp src is 22 ds= t is > 23 / end actions queue index 1 / mark / end > flow create 0 ingress pattern eth / ipv6 dst is > CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / sctp src is 22 d= st is > 23 / end actions queue index 1 / mark / end > flow create 0 ingress pattern eth type is 0x8863 / end actions queue= index 1 / > mark id 1 / end > flow create 0 ingress pattern eth / ipv4 / udp / pfcp s_field is 0 /= end actions > queue index 2 / end >=20 > - created successfully on port 0-10, > - failed from rule on port 11:: > + created successfully on port 0-12, > + failed from rule 6 on port 13:: >=20 > - testpmd> flow create 11 ingress pattern eth / ipv4 src is 192.168.0.= 20 dst is > 192.168.0.21 / tcp src is 22 dst is 23 / end actions queue index 1 / mark= / end > + testpmd> flow create 13 ingress pattern eth type is 0x8863 / end > + actions queue index 1 / mark id 1 / end > eth > iavf_execute_vf_cmd(): No response or return failure (-5) for cmd 47 > iavf_fdir_add(): fail to execute command OP_ADD_FDIR_FILTER > iavf_flow_create(): Failed to create flow > port_flow_complain(): Caught PMD error type 2 (flow rule (handle)): = Add filter > rule failed.: Operation not permitted >=20 > -3. list the rules on port 0-10:: > +3. list the rules on port 0-12:: >=20 > testpmd> flow list 10 > ID Group Prio Attr Rule > - 0 0 0 i-- ETH IPV4 =3D> QUEUE MARK > - 1 0 0 i-- ETH IPV4 UDP =3D> QUEUE MARK > - 2 0 0 i-- ETH IPV4 TCP =3D> QUEUE MARK > - 3 0 0 i-- ETH IPV4 SCTP =3D> QUEUE MARK > - 4 0 0 i-- ETH IPV6 =3D> MARK RSS MARK > - 5 0 0 i-- ETH IPV6 UDP =3D> QUEUE MARK > - 6 0 0 i-- ETH IPV6 TCP =3D> QUEUE MARK > - 7 0 0 i-- ETH IPV6 SCTP =3D> QUEUE MARK > - 8 0 0 i-- ETH =3D> QUEUE MARK > - 9 0 0 i-- ETH IPV4 UDP PFCP =3D> QUEUE > - > - list the rules on port 11-15, there is no rule listed. > + 0 0 0 i-- ETH IPV4 UDP =3D> QUEUE MARK > + 1 0 0 i-- ETH IPV4 TCP =3D> QUEUE MARK > + 2 0 0 i-- ETH IPV4 SCTP =3D> QUEUE MARK > + 3 0 0 i-- ETH IPV6 UDP =3D> QUEUE MARK > + 4 0 0 i-- ETH IPV6 TCP =3D> QUEUE MARK > + 5 0 0 i-- ETH IPV6 SCTP =3D> QUEUE MARK > + 6 0 0 i-- ETH =3D> QUEUE MARK > + 7 0 0 i-- ETH IPV4 UDP PFCP =3D> QUEUE > + > + list the rules on port 13, there are only 6 rules listed. > + list the rules on port 14/15, there is no rule listed. > 110 rules can be created successfully, which applied 110 profiles. >=20 > Note: there are 128 profiles in total. > each pf apply for 8 profiles when kernel driver init, > 4 for non-tunnel packet, 4 for tunnel packet. > profile 0 and profile 1 are default profile for specific packet. > - we use 2*100G card, so only 110 profiles can be used for vf. > + we design case with 2*100G card, so 110 profiles can be used for vf. > + if we use 4*25G card, only 94 profiles can be used for vf. >=20 > -4. send matched packets to port 10, > +4. send matched packets to vf 12, > the packets are redirected to the expected queue. >=20 > -5. flush rules on port 10:: > +5. flush rules on port 12:: >=20 > - flow flush 10 > + flow flush 12 >=20 > - there is no rule listed on port 10. > + there is no rule listed on port 12. > all the rule can be listed correctly in other ports. > - send matched packets to port 10, > + send matched packets to port 12, > the packets are received without FDIR matched ID. >=20 > -6. create rule on port 11 again:: > +6. create rule on port 13 again:: >=20 > - testpmd> flow create 11 ingress pattern eth / ipv4 src is 192.168.0.= 20 dst is > 192.168.0.21 / tcp src is 22 dst is 23 / end actions queue index 1 / mark= / end > + testpmd> flow create 13 ingress pattern eth type is 0x8863 / end > + actions queue index 1 / mark id 1 / end > eth > iavf_execute_vf_cmd(): No response or return failure (-5) for cmd 47 > iavf_fdir_add(): fail to execute command OP_ADD_FDIR_FILTER @@ -3020= ,7 > +3047,7 @@ Subcase 2: add/delete rules >=20 > 1. create two rules:: >=20 > - flow create 0 ingress pattern eth / ipv4 proto is 255 / end actions = queue index > 1 / mark / end > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > + 192.168.0.21 / udp src is 22 dst is 23 / end actions queue index 1 / > + mark id 0 / end > flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is = 192.168.0.21 > / tcp src is 22 dst is 23 / end actions rss queues 2 3 end / mark id 1 / = end >=20 > return the message:: > @@ -3032,7 +3059,7 @@ Subcase 2: add/delete rules >=20 > testpmd> flow list 0 > ID Group Prio Attr Rule > - 0 0 0 i-- ETH IPV4 =3D> QUEUE MARK > + 0 0 0 i-- ETH IPV4 UDP =3D> QUEUE MARK > 1 0 0 i-- ETH IPV4 TCP =3D> RSS MARK >=20 > 2. delete the rules:: > @@ -3045,7 +3072,7 @@ Subcase 2: add/delete rules >=20 > 5. send matched packet:: >=20 > - > sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.20",dst=3D"19= 2.168.0.21 > ", proto=3D255)/Raw('x' * 80)],iface=3D"enp134s0f1") > + > + sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.20",dst=3D"= 192.1 > + 68.0.21")/UDP(sport=3D22,dport=3D23)/Raw('x' * 80)],iface=3D"enp134s0f1= ") >=20 > sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.20",dst=3D"19= 2.168.0.21 > ")/TCP(sport=3D22,dport=3D23)/Raw('x' * 80)],iface=3D"enp134s0f1") >=20 > check packet 1 is redirected to queue 1 with FDIR matched ID=3D0x0 @@= - > 3328,6 +3355,52 @@ Subcase 8: PF reset VF and delete the rule >=20 > 8. send matched packets, check them redirected to expected queue with FD= IR > matched ID. >=20 > +Subcase 9: check profile delete > +------------------------------- > + > +1. create ipv4-tcp and ipv6-udp rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / tcp src is 22 dst is 23 / end actions queue index 1 / mark= id 0 / end > + flow create 0 ingress pattern eth / ipv6 dst is > + CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 hop is 2 tc is > + 1 / udp src is 22 dst is 23 / end actions queue index 2 / mark id 2 / > + end > + > + return the message:: > + > + Flow rule #0 created > + Flow rule #1 created > + > + list the rules:: > + > + testpmd> flow list 0 > + ID Group Prio Attr Rule > + 0 0 0 i-- ETH IPV4 TCP =3D> QUEUE MARK > + 1 0 0 i-- ETH IPV6 UDP =3D> QUEUE MARK > + > +2. send ipv4-pay and ipv6-pay packets:: > + > + > sendp([Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.20",dst=3D"19= 2.168.0.21 > ")/Raw('x' * 80)],iface=3D"enp134s0f1") > + > + sendp([Ether(dst=3D"00:11:22:33:44:55")/IPv6(dst=3D"CDCD:910A:2222:5498= :84 > + 75:1111:3900:2020", src=3D"2001::2", tc=3D1, hlim=3D2)/("X"*480)], > + iface=3D"enp134s0f1") > + > + check the two packets are distributed by RSS without FDIR matched ID. > + > +3. delete the rules, and create a ipv4-other and a ipv6-other rule:: > + > + flow flush 0 > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / end actions queue index 3 / mark id 3 / end > + flow create 0 ingress pattern eth / ipv6 dst is > + CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 hop is 2 tc is > + 1 / end actions queue index 4 / mark id 4 / end > + > +4. send the two packets again, > + check ipv4-pay packet is redirected to queue 3 with FDIR matched ID= =3D0x3 > + check ipv6-pay packet is redirected to queue 4 with FDIR matched > +ID=3D0x4 > + > +5. delete the rules, and create ipv4-tcp and ipv6-udp rules again:: > + > + flow flush 0 > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / tcp src is 22 dst is 23 / end actions queue index 1 / mark= id 0 / end > + flow create 0 ingress pattern eth / ipv6 dst is > + CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 hop is 2 tc is > + 1 / udp src is 22 dst is 23 / end actions queue index 2 / mark id 2 / > + end > + > +6. send the two packets again, > + check the two packets are distributed by RSS without FDIR matched ID. > + > Test case: PFCP coverage test > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > Subcase 1: PFCP FDIR vlan strip on HW checksum offload check > -- > 2.7.4