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 8167CA04EF; Tue, 2 Jun 2020 07:59:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 11FED1BFC7; Tue, 2 Jun 2020 07:59:11 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 928E21BFBC for ; Tue, 2 Jun 2020 07:59:09 +0200 (CEST) IronPort-SDR: lhodpPuFLLKKRD42jWHr+FrofuK4poWU8+Sx5CxOzuh3uRKTO9POQIKQNZHgf+Y9CRX3TrPBnh jIrNMFzFFDbg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2020 22:59:08 -0700 IronPort-SDR: rtm69Tcmtou7ltqtJnUHsB5VniLSCmSwHfA/Ib9WrqpoJF4uCDhHbuAJgEkiJJKwLQxWvzu/1B FzlFn8Aib5Ag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,463,1583222400"; d="scan'208";a="272245808" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 01 Jun 2020 22:59:08 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jun 2020 22:59:07 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 1 Jun 2020 22:49:06 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 1 Jun 2020 22:49:06 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.168]) with mapi id 14.03.0439.000; Tue, 2 Jun 2020 13:49:03 +0800 From: "Tu, Lijuan" To: "Fu, Qi" , "dts@dpdk.org" CC: "Fu, Qi" Thread-Topic: [dts] [PATCH V1]test_plans/iavf_fdir_test_plan: add l2tp and esp to iavf fdir Thread-Index: AQHWOIOg5h1brpIL202eZzji4D/PoqjE0f+A Date: Tue, 2 Jun 2020 05:49:02 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC56F14@SHSMSX101.ccr.corp.intel.com> References: <20200602110554.88516-1-qi.fu@intel.com> In-Reply-To: <20200602110554.88516-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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]test_plans/iavf_fdir_test_plan: add l2tp and esp to iavf fdir 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: Tuesday, June 2, 2020 7:06 PM > To: dts@dpdk.org > Cc: Fu, Qi > Subject: [dts] [PATCH V1]test_plans/iavf_fdir_test_plan: add l2tp and esp= to > iavf fdir >=20 > Add l2tpv3 and esp to cvl iavf fdir test plan. >=20 > Signed-off-by: Fu Qi > --- > test_plans/iavf_fdir_test_plan.rst | 574 +++++++++++++++++++++++++++++ > 1 file changed, 574 insertions(+) >=20 > diff --git a/test_plans/iavf_fdir_test_plan.rst > b/test_plans/iavf_fdir_test_plan.rst > index c1e9161..28a1e04 100644 > --- a/test_plans/iavf_fdir_test_plan.rst > +++ b/test_plans/iavf_fdir_test_plan.rst > @@ -77,6 +77,22 @@ Pattern and input set > +------------------------------+----------------------------+-------= --------------------------- > ---------------------------------+ > | | MAC_IPV4_GTPU_EH | [TEID]= , [QFI] > | > +------------------------------+----------------------------+-------= --------------------------- > ---------------------------------+ > + | L2TPv3 | MAC_IPV4_L2TPv3 | [Sessi= on ID] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------+ > + | | MAC_IPV6_L2TPv3 | [Sessi= on ID] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------+ > + | ESP | MAC_IPV4_ESP | [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------+ > + | | MAC_IPV6_ESP | [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------+ > + | | MAC_IPV4_AH | [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------+ > + | | MAC_IPV6_AH | [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------+ > + | | MAC_IPV4_NAT-T-ESP | [Sourc= e IP], [Dest IP], [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------+ > + | | MAC_IPV6_NAT-T-ESP | [Sourc= e IP], [Dest IP], [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------+ >=20 >=20 > Supported function type > @@ -426,6 +442,96 @@ Send packets >=20 > sendp(Ether(dst=3D"00:11:22:33:44:55")/IPv6()/UDP(sport=3D22, > dport=3D8805)/PFCP(Sfield=3D1, SEID=3D256),iface=3D"enp134s0f1") >=20 > +* MAC_IPV4_L2TPv3 > + > + matched packets:: > + > + 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"enp134s0f= 1") > + sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D'192.168.1.3', > proto=3D115)/L2TP('\\x00\\x00\\x00\\x11')/Raw('x'*480),iface=3D"enp134s0f= 1") > + > + mismatched packets:: > + > + sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D'192.168.0.3', > proto=3D115)/L2TP('\\x00\\x00\\x00\\x12')/Raw('x'*480),iface=3D"enp134s0f= 1") > + > +* MAC_IPV6_L2TPv3 > + > + matched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D'1111:2222:3333:4444:55= 55:66 > 66:7777:8888',nh=3D115)/L2TP('\\x00\\x00\\x00\\x11')/Raw('x'*480),iface= =3D"en > p134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D'1111:2222:3333:4444:55= 55:66 > 66:7777:9999',nh=3D115)/L2TP('\\x00\\x00\\x00\\x11')/Raw('x'*480),iface= =3D"en > p134s0f1") > + > + mismatched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D'1111:2222:3333:4444:55= 55:66 > 66:7777:8888',nh=3D115)/L2TP('\\x00\\x00\\x00\\x12')/Raw('x'*480),iface= =3D"en > p134s0f1") > + > +* MAC_IPV4_ESP > + > + matched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.0.3",proto=3D50)= /ESP(spi > =3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.1.3",proto=3D50)= /ESP(spi > =3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > + mismatched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.0.3",proto=3D50)= /ESP(spi > =3D17)/Raw('x'*480),iface=3D"enp134s0f1") > + > +* MAC_IPV6_ESP > + > + matched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:8888",nh=3D50)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:9999",nh=3D50)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > + mismatched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:8888",nh=3D50)/ESP(spi=3D17)/Raw('x'*480),iface=3D"enp134s0f1") > + > +* MAC_IPV4_AH > + > + matched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.0.3",proto=3D51)= /AH(spi > =3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.1.3",proto=3D51)= /AH(spi > =3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > + mismatched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.0.3",proto=3D51)= /AH(spi > =3D17)/Raw('x'*480),iface=3D"enp134s0f1") > + > +* MAC_IPV6_AH > + > + matched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:8888",nh=3D51)/AH(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:9999",nh=3D51)/AH(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > + mismatched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:8888",nh=3D51)/AH(spi=3D17)/Raw('x'*480),iface=3D"enp134s0f1") > + > +* MAC_IPV4_NAT-T-ESP > + > + matched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.0.20")/UDP(dport= =3D450 > 0)/ESP(spi=3D2)/Raw('x'*480),iface=3D"enp134s0f1") > + > + mismatched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.10.20")/UDP(dpor= t=3D45 > 00)/ESP(spi=3D2)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.0.20")/UDP(dport= =3D450 > 0)/ESP(spi=3D12)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(dst=3D"192.168.0.20")/UDP(dport= =3D450 > 0)/ESP(spi=3D2)/Raw('x'*480),iface=3D"enp134s0f1") > + > +* MAC_IPV6_NAT-T-ESP > + > + matched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(dst=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:8888")/UDP(dport=3D4500)/ESP(spi=3D2)/Raw('x'*480),iface=3D"enp1= 34s0 > f1") > + > + mismatched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(dst=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:8888")/UDP(dport=3D4500)/ESP(spi=3D12)/Raw('x'*480),iface=3D"enp= 134s > 0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(dst=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:9999")/UDP(dport=3D4500)/ESP(spi=3D2)/Raw('x'*480),iface=3D"enp1= 34s0 > f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"1111:2222:3333:4444:55= 55:6 > 666:7777:8888")/UDP(dport=3D4500)/ESP(spi=3D2)/Raw('x'*480),iface=3D"enp1= 34s0 > f1") > + >=20 > Test case: flow validation > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > @@ -1606,6 +1712,454 @@ Subcase 6: PFCP mark > get the same result. >=20 >=20 > +Test case: MAC_IPV4_L2TPv3 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 > + > +Subcase 1: MAC_IPV4_L2TPv3 queue index > +-------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / l2tpv3oip session_id is 1= 7 / end > actions queue index 13 / mark id 7 / end > + > +2. send matched packets, check the packets are distributed to queue 13 > with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 13 without FDIR matched ID. > + > +3. verify rules can be listed and destroyed:: > + > + testpmd> flow list 0 > + > + check the rule listed. > + destroy the rule:: > + > + testpmd> flow destroy 0 rule 0 > + > +4. verify matched packets are not distributed to queue 13 without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 2: MAC_IPV4_L2TPv3 rss queues > +------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / l2tpv3oip session_id is 1= 7 / end > actions rss queues 1 2 3 4 end / mark id 6 / end > + > +2. send matched packets, check the packets are distributed to queue 1 or= 2 > or 3 or 4 with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 1 or 2 or 3 or 4 without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not distributed to queue 1 or 2 or 3 or 4 > without FDIR matched ID. > + check there is no rule listed. > + > +Subcase 3: MAC_IPV4_L2TPv3 mark > +------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / l2tpv3oip session_id is 1= 7 / end > actions mark id 15 / end > + > +2. send matched packets, check the packets are received with FDIR matche= d > ID. > + send mismatched packets, check the packets are received without FDIR > matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are received without FDIR matched ID. > + check there is no rule listed. > + > + > +Test case: MAC_IPV6_L2TPv3 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 > + > +Subcase 1: MAC_IPV6_L2TPv3 queue index > +-------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / l2tpv3oip session_id is 1= 7 / end > actions queue index 13 / mark id 7 / end > + > +2. send matched packets, check the packets are distributed to queue 13 > with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 13 without FDIR matched ID. > + > +3. verify rules can be listed and destroyed:: > + > + testpmd> flow list 0 > + > + check the rule listed. > + destroy the rule:: > + > + testpmd> flow destroy 0 rule 0 > + > +4. verify matched packets are not distributed to queue 13 without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 2: MAC_IPV6_L2TPv3 rss queues > +------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 / l2tpv3oip session_id is 1= 7 / end > actions rss queues 1 2 3 4 end / mark id 6 / end > + > +2. send matched packets, check the packets are distributed to queue 1 or= 2 > or 3 or 4 with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 1 or 2 or 3 or 4 without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not distributed to queue 1 or 2 or 3 or 4 > without FDIR matched ID. > + check there is no rule listed. > + > +Subcase 3: MAC_IPV6_L2TPv3 mark > +------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 / l2tpv3oip session_id is 1= 7 / end > actions mark id 15 / end > + > +2. send matched packets, check the packets are received with FDIR matche= d > ID. > + send mismatched packets, check the packets are received without FDIR > matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are received without FDIR matched ID. > + check there is no rule listed. > + > + > +Test case: MAC_IPV4_ESP 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 > + > +Subcase 1: MAC_IPV4_ESP queue index > +----------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / esp spi is 7 / end action= s queue > index 13 / mark id 7 / end > + > +2. send matched packets, check the packets are distributed to queue 13 > with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 13 without FDIR matched ID. > + > +3. verify rules can be listed and destroyed:: > + > + testpmd> flow list 0 > + > + check the rule listed. > + destroy the rule:: > + > + testpmd> flow destroy 0 rule 0 > + > +4. verify matched packets are not distributed to queue 13 without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 2: MAC_IPV4_ESP rss queues > +---------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / esp spi is 7 / end action= s rss > queues 1 2 3 4 end / mark id 6 / end > + > +2. send matched packets, check the packets are distributed to queue 1 or= 2 > or 3 or 4 with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 1 or 2 or 3 or 4 without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not distributed to queue 1 or 2 or 3 or 4 > without FDIR matched ID. > + check there is no rule listed. > + > +Subcase 3: MAC_IPV4_ESP mark > +---------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / esp spi is 7 / end action= s mark id > 15 / end > + > +2. send matched packets, check the packets are received with FDIR matche= d > ID. > + send mismatched packets, check the packets are received without FDIR > matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are received without FDIR matched ID. > + check there is no rule listed. > + > + > +Test case: MAC_IPV6_ESP 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 > + > +Subcase 1: MAC_IPV6_ESP queue index > +----------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 / esp spi is 7 / end action= s queue > index 13 / mark id 7 / end > + > +2. send matched packets, check the packets are distributed to queue 13 > with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 13 without FDIR matched ID. > + > +3. verify rules can be listed and destroyed:: > + > + testpmd> flow list 0 > + > + check the rule listed. > + destroy the rule:: > + > + testpmd> flow destroy 0 rule 0 > + > +4. verify matched packets are not distributed to queue 13 without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 2: MAC_IPV6_ESP rss queues > +---------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 / esp spi is 7 / end action= s rss > queues 1 2 3 4 end / mark id 6 / end > + > +2. send matched packets, check the packets are distributed to queue 1 or= 2 > or 3 or 4 with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 1 or 2 or 3 or 4 without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not distributed to queue 1 or 2 or 3 or 4 > without FDIR matched ID. > + check there is no rule listed. > + > +Subcase 3: MAC_IPV6_ESP mark > +---------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 / esp spi is 7 / end action= s mark id > 15 / end > + > +2. send matched packets, check the packets are received with FDIR matche= d > ID. > + send mismatched packets, check the packets are received without FDIR > matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are received without FDIR matched ID. > + check there is no rule listed. > + > + > +Test case: MAC_IPV4_AH 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 > + > +Subcase 1: MAC_IPV4_AH queue index > +---------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / ah spi is 7 / end actions= queue > index 13 / mark id 7 / end > + > +2. send matched packets, check the packets are distributed to queue 13 > with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 13 without FDIR matched ID. > + > +3. verify rules can be listed and destroyed:: > + > + testpmd> flow list 0 > + > + check the rule listed. > + destroy the rule:: > + > + testpmd> flow destroy 0 rule 0 > + > +4. verify matched packets are not distributed to queue 13 without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 2: MAC_IPV4_AH rss queues > +--------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / ah spi is 7 / end actions= rss > queues 1 2 3 4 end / mark id 6 / end > + > +2. send matched packets, check the packets are distributed to queue 1 or= 2 > or 3 or 4 with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 1 or 2 or 3 or 4 without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not distributed to queue 1 or 2 or 3 or 4 > without FDIR matched ID. > + check there is no rule listed. > + > +Subcase 3: MAC_IPV4_AH mark > +--------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 / ah spi is 7 / end actions= mark id > 15 / end > + > +2. send matched packets, check the packets are received with FDIR matche= d > ID. > + send mismatched packets, check the packets are received without FDIR > matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are received without FDIR matched ID. > + check there is no rule listed. > + > + > +Test case: MAC_IPV6_AH 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 > + > +Subcase 1: MAC_IPV6_AH queue index > +---------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 / ah spi is 7 / end actions= queue > index 13 / mark id 7 / end > + > +2. send matched packets, check the packets are distributed to queue 13 > with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 13 without FDIR matched ID. > + > +3. verify rules can be listed and destroyed:: > + > + testpmd> flow list 0 > + > + check the rule listed. > + destroy the rule:: > + > + testpmd> flow destroy 0 rule 0 > + > +4. verify matched packets are not distributed to queue 13 without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 2: MAC_IPV6_AH rss queues > +--------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 / ah spi is 7 / end actions= rss > queues 1 2 3 4 end / mark id 6 / end > + > +2. send matched packets, check the packets are distributed to queue 1 or= 2 > or 3 or 4 with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 1 or 2 or 3 or 4 without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not distributed to queue 1 or 2 or 3 or 4 > without FDIR matched ID. > + check there is no rule listed. > + > +Subcase 3: MAC_IPV6_AH mark > +--------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 / ah spi is 7 / end actions= mark id > 15 / end > + > +2. send matched packets, check the packets are received with FDIR matche= d > ID. > + send mismatched packets, check the packets are received without FDIR > matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are received without FDIR matched ID. > + check there is no rule listed. > + > + > +Test case: MAC_IPV4_NAT-T-ESP 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 > + > +Subcase 1: MAC_IPV4_NAT-T-ESP queue index > +----------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp /= esp spi > is 2 / end actions queue index 13 / mark id 7 / end > + > +2. send matched packets, check the packets are distributed to queue 13 > with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 13 without FDIR matched ID. > + > +3. verify rules can be listed and destroyed:: > + > + testpmd> flow list 0 > + > + check the rule listed. > + destroy the rule:: > + > + testpmd> flow destroy 0 rule 0 > + > +4. verify matched packets are not distributed to queue 13 without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 2: MAC_IPV4_NAT-T-ESP rss queues > +---------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp /= esp spi > is 2 / end actions rss queues 1 2 3 4 end / mark id 6 / end > + > +2. send matched packets, check the packets are distributed to queue 1 or= 2 > or 3 or 4 with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 1 or 2 or 3 or 4 without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not distributed to queue 1 or 2 or 3 or 4 > without FDIR matched ID. > + check there is no rule listed. > + > +Subcase 3: MAC_IPV4_NAT-T-ESP mark > +---------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp /= esp spi > is 2 / end actions mark id 15 / end > + > +2. send matched packets, check the packets are received with FDIR matche= d > ID. > + send mismatched packets, check the packets are received without FDIR > matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are received without FDIR matched ID. > + check there is no rule listed. > + > + > +Test case: MAC_IPV6_NAT-T-ESP 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 > + > +Subcase 1: MAC_IPV6_NAT-T-ESP queue index > +----------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 192.168.0.20 / udp /= esp spi > is 2 / end actions queue index 13 / mark id 7 / end > + > +2. send matched packets, check the packets are distributed to queue 13 > with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 13 without FDIR matched ID. > + > +3. verify rules can be listed and destroyed:: > + > + testpmd> flow list 0 > + > + check the rule listed. > + destroy the rule:: > + > + testpmd> flow destroy 0 rule 0 > + > +4. verify matched packets are not distributed to queue 13 without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 2: MAC_IPV6_NAT-T-ESP rss queues > +---------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 192.168.0.20 / udp /= esp spi > is 2 / end actions rss queues 1 2 3 4 end / mark id 6 / end > + > +2. send matched packets, check the packets are distributed to queue 1 or= 2 > or 3 or 4 with FDIR matched ID. > + send mismatched packets, check the packets are not distributed to que= ue > 1 or 2 or 3 or 4 without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not distributed to queue 1 or 2 or 3 or 4 > without FDIR matched ID. > + check there is no rule listed. > + > +Subcase 3: MAC_IPV6_NAT-T-ESP mark > +---------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 192.168.0.20 / udp /= esp spi > is 2 / end actions mark id 15 / end > + > +2. send matched packets, check the packets are received with FDIR matche= d > ID. > + send mismatched packets, check the packets are received without FDIR > matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are received without FDIR matched ID. > + check there is no rule listed. > + > + > Test case: negative cases > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >=20 > @@ -1828,6 +2382,26 @@ Subcase 12: unsupported pattern with OS > package >=20 > 2. check there is no rule listed. >=20 > +3. Create a L2TPv3 rule with OS default package:: > + > + flow create 0 ingress pattern eth / ipv4 / l2tpv3oip session_id is 1= 7 / end > actions queue index 3 / mark id 7 / end > + > + Failed to create flow, report error message:: > + > + Add filter rule failed.: Operation not permitted > + > +4. check there is no rule listed. > + > +5. Create a ESP rule with OS default package:: > + > + flow create 0 ingress pattern eth / ipv6 / udp / esp spi is 17 / end= actions > rss queues 2 3 end / mark id 7 / end > + > + Failed to create flow, report error message:: > + > + Add filter rule failed.: Operation not permitted > + > +6. check there is no rule listed. > + > Subcase 13: invalid port > ------------------------ >=20 > -- > 2.17.1