From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 63668A0C43; Wed, 15 Sep 2021 05:27:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 368AB4014F; Wed, 15 Sep 2021 05:27:18 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 9E0B74003C for ; Wed, 15 Sep 2021 05:27:15 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10107"; a="202368998" X-IronPort-AV: E=Sophos;i="5.85,294,1624345200"; d="scan'208";a="202368998" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 20:27:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,294,1624345200"; d="scan'208";a="609940167" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga001.fm.intel.com with ESMTP; 14 Sep 2021 20:27:14 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 14 Sep 2021 20:27:14 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 14 Sep 2021 20:27:14 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.104) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Tue, 14 Sep 2021 20:27:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VFmMQIJzoKKgW6Sn2tHETlYvZ8Rm6CUnUZ1ubX/PHrGlpBMwN+RDLjktXUz6p0ZC/VraGBh7lqHMn2UXJHhCf0rJtFd+8Ld1HWVsy6jfKeT7Yf5RYot0toer/I0xpIdGTVBy+1yXfownzcXE1a5annznzCxZGTypoIYAdqkHmSRgB338BRgcdJAh6hG59QKfahoAksScerjZkz6p2IwiPA4mORA1CHyddZoN4WBwJstKip1KKthouia+GofrkDONaqYdZvAB1uK0c/gMDnWOhkLwNauDf0ZHFHFwFtOuk1aK4butt5AM34uu4G4hh1CHO8dtx5GJts2cKRg0yeR5+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5laaMg6A5/UEgcQRB0SN0ELDp3dR6IB1AIW5Bge8iG8=; b=nfkXi/RsasRhCcf19ThVAErtxW9fclP1WDJV40eybX20Vg3suh0lr04ArglAk8rSlqrh5OdJOjFEvffhccUkR4B3oqqz2ROHqGuwHmmez+6HWVA8Y6mXYP4XrVnHtBVSFzIy1sUwRrQkGPBcTtuVSz4WmZ6a5QPRPm5cf1gjkthMU1wZl0xmrWKXQcIDNyf2yVZkE/eTlp4PQ3vqi3B3FhSJ/KV9PXbmdJPelU/C9lownHVuSSrArk1fkJw9uki95GKRCX4poX+WUrncwTGWdqp2r06qQ9/I70igtfy7xD9k5xAd5QIOR7ujkYMy+zR+qP1Jj18YyUfXa5Haltn3jg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5laaMg6A5/UEgcQRB0SN0ELDp3dR6IB1AIW5Bge8iG8=; b=A2EDAUeRMjdDx0TfzQgy3S4Qdg2rxSjM4+ndNJC+fspxOy/OC9SDAIpQ3e9Ce2J+9HhsDBi05qFlYMJ+8I0y1dYYbVuDJ2dDZgefrajJ2Sc7acAurNK+Za2wqocOh0i9lAH49L7U0KK68XWqmrgjpXANt8OQL7wSytHXtaCS5UU= Received: from BN7PR11MB2658.namprd11.prod.outlook.com (2603:10b6:406:ae::16) by BN7PR11MB2770.namprd11.prod.outlook.com (2603:10b6:406:b4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Wed, 15 Sep 2021 03:27:12 +0000 Received: from BN7PR11MB2658.namprd11.prod.outlook.com ([fe80::dc53:d62d:2e6:2ee9]) by BN7PR11MB2658.namprd11.prod.outlook.com ([fe80::dc53:d62d:2e6:2ee9%6]) with mapi id 15.20.4500.019; Wed, 15 Sep 2021 03:27:12 +0000 From: "Lin, Xueqin" To: "Huang, ZhiminX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V2 1/4] test_plans/cvl_fdir_test_plan:add esp flow test plan Thread-Index: AQHXqUy3RFBlb3cyVU+YCzT/K18guaukcGJA Date: Wed, 15 Sep 2021 03:27:12 +0000 Message-ID: References: <20210914181204.20088-1-zhiminx.huang@intel.com> <20210914181204.20088-2-zhiminx.huang@intel.com> In-Reply-To: <20210914181204.20088-2-zhiminx.huang@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a021c763-b8c0-42a9-fdbb-08d977f8b54a x-ms-traffictypediagnostic: BN7PR11MB2770: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:201; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zuNAIhUVHi7QzAc5vNenyReXXAUgS3vZ8qYov617tQSK+6ExouPOWJG1ZyRk1mV4wnpWLDcOc0tpM78yZrZ+SsLkoOPJJ2dSqF9K+0lBbvLYvOsfkD/zDJTFC5Sfly1lnGcRSzftO9nhoUWXuqy9fQz0u4huJ+t+KG2+rZqM4Te1VAiDWlCtgaJwxEvn62JqmbDvjo+PqQQqG+U72jnn7GJSEjx5o3LZm/vuurFe/DaGAaeNfFdRmdiSf5CT8UmUTE+JxI+xKDKuVdSJOl/oXJGyH9yIg3qcUaN6OYOMp82Tto+kFc1K2pflMWRW9uU/W252qzQCGYQbsRdWJMTWBTSf7WuT7eCIwViGBv5I07QjNeSlWDUnxuy+ZrJ6gb1/G6MDTyZ1xydM7SAbFXYAaU1KUQN9IcBAxw3KsOzhH4I+9GhzyrBIMDFrdhOayXshOpCiM1zq/VNUR3tyuF3P3c7o3uIzDa8N3QbHl4EqGaCNHaBIdLUBHkgnFRS6bxNN9xNUDBGd4S0qeGpu/l67VyTHh73yOxrRQB7NOGKOEXYk4MRn+NFFRR+80579d2ezianbGQfElEUQRItZOb9xThyBrgQ8cxqW2GWlOJVNt98AZtWLM6rKz+lEhUlY2AkvIRHGDCCevg41WzXczpWFgrz7L9Wz6nnsNfUe+LSfhZpqrlRyJTUQO9U0kjB2VspzZxsqKz1KCAsJNvlTBYxYLg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR11MB2658.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(136003)(39860400002)(396003)(366004)(83380400001)(30864003)(2906002)(122000001)(26005)(5660300002)(86362001)(38070700005)(52536014)(186003)(8676002)(6506007)(66476007)(76116006)(38100700002)(33656002)(53546011)(316002)(64756008)(66556008)(66446008)(8936002)(110136005)(478600001)(55016002)(7696005)(71200400001)(9686003)(66946007)(579004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ObezWU6/24oAvOzfYreSqeQRBlRI17zMMZVghbhoXT6+WUXqBoOmfxBHjgH9?= =?us-ascii?Q?G7qJOzPcT9JOUtCZjB12iLWwsLN2KLL0D309CR8ac/V/KA+pB0GGpPdC8Xkc?= =?us-ascii?Q?DEANcqxpz4T8WJO45b3KoAN2Z7xmF4SThqrIkemqtk1TvM9j71CBrj3NqIil?= =?us-ascii?Q?qc4UcwxwTXAL/unAQMlM5G4X96ICyj81e0OKNFqdKfjQsR5MleYRSkbRiorf?= =?us-ascii?Q?Bo4H28BymT/3N50mPhQv6xLB1sLUebGIh9RjFAjar2on8OOaL9VuTv/aN5F6?= =?us-ascii?Q?ysbEIc3cx5J+obm8vSrMUv61D0VUr30oU+/8MXrAcpviA/+QnCAhEiuHGBjO?= =?us-ascii?Q?+8nM39rbUEj/fJChT8LEADPVXNB1u8jM8WvQllC1b1AogEe8eR9yVCjkxFgl?= =?us-ascii?Q?iodxYGIZblTd++cCchHg2AwdspM2IkINAJ1FFXGhyRE9ucySOvQqKOwhrPsR?= =?us-ascii?Q?tEDiO7Hxy7gCka/dA+0dKrkeUNxen3N1uZZSVkQJoJe8ts4QD0pupf/k7GZu?= =?us-ascii?Q?f3qT37DhHNChlhg7XKJcj/9Lf2OoUAsFtvbDDWIDXdSVw45DDdkoo15Vx6US?= =?us-ascii?Q?4e43IIu26hGOr1mVXOYQr/KZjVMATJZDoHdLyFY8plhKGZhUL0Qv9nz/ijhv?= =?us-ascii?Q?/t5awsuj8Tm1oRnLC7Sku9HCwgt7Rp1lFvH1+qPhfm9qIqVqFGM5L1v1rvrT?= =?us-ascii?Q?QDw1d6rvn0j0L0H/8ObKUPOW0TkIK1SI/F2sd04uxgIqZH/usYXBhKz9/TSk?= =?us-ascii?Q?5B2nJR/SmWgvBGs3BEa1pjTYPKuNNA/RgTX7XyLad0tZXjQWL6ZZ1imk4Yat?= =?us-ascii?Q?/REd9Dnn9sJDTNL+aOIa5tVyiKxUAIo1m3xKpcyjR9PO6unPvxaPAs9Q/Azd?= =?us-ascii?Q?tIjMxK9bGzWtq/jEzjm3IHL5vfJVZ06czStCHaKw2Kmbr7LGEYFp/U0JsLr2?= =?us-ascii?Q?PQily5+BL/XZKRMO1jnezscsDgaet2UTZyYn0HvKN97Z0laqOFbHDmuyVcqF?= =?us-ascii?Q?n5aGt2JHW8Ke0uzc7V+jtIR1QalPEpPmVVpUmxesFXXTIRPWEuV0NPYWjTSx?= =?us-ascii?Q?WECzhV8EDOQaD1vLFGw6ZVyUQqx7OdxMfiEnuxy4Dg+TY2DkcMmzbCgicVr4?= =?us-ascii?Q?anS0r0SYZawCpmzw8AW2VSuRhKMGSBnvtgIAvr6XVaSXKT+uao6TmVW2H1gs?= =?us-ascii?Q?pyEw0BRy33D7+iPY966V2lXqyP3rzxz5scgaCLAsyT+ASrEwmmDdXunuZ5si?= =?us-ascii?Q?ue64Eot1JgrVDNgw8jLCH2W2XXNzzSyMGJ4D3TIEUYfeGzimg2ZsZdrf9idm?= =?us-ascii?Q?KeRW5uN33uQ9bOSRp9iDfFiE?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN7PR11MB2658.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a021c763-b8c0-42a9-fdbb-08d977f8b54a X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2021 03:27:12.5052 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tLBCARsTJejWTLqDkB++C860bfqfZl5nk+1F9rBq36LV5o8R4ycxb3yS1CP83JUJyji5EqjaXVKt/BdvXuKbvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2770 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V2 1/4] test_plans/cvl_fdir_test_plan:add esp flow test plan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: Huang, ZhiminX > Sent: Wednesday, September 15, 2021 2:12 AM > To: dts@dpdk.org > Cc: Lin, Xueqin ; Huang, ZhiminX > > Subject: [dts] [PATCH V2 1/4] test_plans/cvl_fdir_test_plan:add esp flow = test > plan >=20 > add 21.08 new feature testplan,this feature support esp flow to match out= er > ip header. > take ip src/dst and spi for inputset,add 4 new cases in cvl_fdir test pla= n. >=20 > Signed-off-by: Zhimin Huang Acked-by: Xueqin Lin > --- > test_plans/cvl_fdir_test_plan.rst | 457 ++++++++++++++++++++++++++++++ > 1 file changed, 457 insertions(+) >=20 > diff --git a/test_plans/cvl_fdir_test_plan.rst > b/test_plans/cvl_fdir_test_plan.rst > index 9f4cae4a..2ee2154c 100644 > --- a/test_plans/cvl_fdir_test_plan.rst > +++ b/test_plans/cvl_fdir_test_plan.rst > @@ -87,6 +87,14 @@ Pattern and input set > +------------------------------+----------------------------+-------= --------------------------- > ---------------------------------------------+ > | L2 Ethertype | L2 Ethertype | [Ether= type] > | > +------------------------------+----------------------------+-------= --------------------------- > ---------------------------------------------+ > + | ESP | MAC_IPV4_ESP | [Sourc= e IP] [Dest IP] [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------------------+ > + | | MAC_IPV6_ESP | [Sourc= e IP] [Dest IP] [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------------------+ > + | | MAC_IPV4_NAT-T-ESP | [Sourc= e IP] [Dest IP] [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------------------+ > + | | MAC_IPV6_NAT-T-ESP | [Sourc= e IP] [Dest IP] [SPI] > | > + +------------------------------+----------------------------+-------= -------------------------- > ----------------------------------------------+ >=20 > .. note:: >=20 > @@ -518,6 +526,55 @@ Send packets >=20 > sendp([Ether(dst=3D"00:11:22:33:44:55",type=3D0x88f7)/"\\x00\\x02"], > iface=3D"enp134s0f1") >=20 > +* MAC_IPV4_ESP > + > + matched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.0.20",dst=3D"192= .168.0.2 > 1",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.22",dst=3D"192= .168.0.2 > 1",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.0.20",dst=3D"192= .168.0.1 > 1",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.0.20",dst=3D"192= .168.0.2 > 1",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"2001::1",dst=3D"2001::= 2",nh=3D5 > 0)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > + mismatched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"2001::8",dst=3D"2001::= 2",nh=3D5 > 0)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"2001::1",dst=3D"2001::= 9",nh=3D5 > 0)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"2001::1",dst=3D"2001::= 2",nh=3D5 > 0)/ESP(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",dst=3D"192= .168.0.2 > 1")/UDP(dport=3D4500)/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.22",dst=3D"192= .168.0.2 > 1")/UDP(dport=3D4500)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.0.20",dst=3D"192= .168.0.1 > 1")/UDP(dport=3D4500)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D"192.168.0.20",dst=3D"192= .168.0.2 > 1")/UDP(dport=3D4500)/ESP(spi=3D77)/Raw('x'*480),iface=3D"enp134s0f1") > + > + > +* MAC_IPV6_NAT-T-ESP > + > + matched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"2001::1",dst=3D"2001::= 2")/UDP( > dport=3D4500)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > + mismatched packets:: > + > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"2001::8",dst=3D"2001::= 2")/UDP( > dport=3D4500)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"2001::1",dst=3D"2001::= 9")/UDP( > dport=3D4500)/ESP(spi=3D7)/Raw('x'*480),iface=3D"enp134s0f1") > + > sendp(Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D"2001::1",dst=3D"2001::= 2")/UDP( > dport=3D4500)/ESP(spi=3D77)/Raw('x'*480),iface=3D"enp134s0f1") > + > 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 >=20 > @@ -2924,6 +2981,406 @@ Subcase 7: unsupported Ethertype >=20 > the number "2" stands for switch rule, fdir doesn't support IPV4/IPV6 > ethertype. >=20 > +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=3D=3D=3D > + > +Subcase 1: MAC_IPV4_ESP queue index > +-------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / esp spi is 7 / end actions queue index 13 / mark id 7 / en= d > + > +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 src is 192.168.0.20 dst is > 192.168.0.21 / esp spi is 7 / end actions rss queues 1 2 3 4 end / mark i= d 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 passthru > +----------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / esp spi is 7 / end actions passthru / mark id 1 / end > + > +2. send matched packets, check the packets are distributed by RSS with F= DIR > matched ID. > + send mismatched packets, check the packets are distributed by RSS > without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are distributed to the same queue without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 4: MAC_IPV4_ESP drop > +------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / esp spi is 7 / end actions drop / end > + > +2. send matched packets, check the packets are dropped > + send mismatched packets, check the packets are not dropped. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not dropped. > + check there is no rule listed. > + > +Subcase 5: MAC_IPV4_ESP mark+rss > +----------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / esp spi is 7 / end actions mark id 2 / rss / end > + > +2. send matched packets, check the packets are distributed by RSS with F= DIR > matched ID. > + send mismatched packets, check the packets are distributed by RSS > without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are distributed to the same queue without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 6: MAC_IPV4_ESP mark > +------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / esp 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_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 > + > +Subcase 1: MAC_IPV6_ESP queue index > +-------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / esp > 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_ESP rss queues > +------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / esp > 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_ESP passthru > +----------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / esp > spi is 7 / end actions passthru / mark id 1 / end > + > +2. send matched packets, check the packets are distributed by RSS with F= DIR > matched ID. > + send mismatched packets, check the packets are distributed by RSS > without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are distributed to the same queue without FDIR > matched ID=3D0x0. > + check there is no rule listed. > + > +Subcase 4: MAC_IPV6_ESP drop > +------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / esp > spi is 7 / end actions drop / end > + > +2. send matched packets, check the packets are dropped > + send mismatched packets, check the packets are not dropped. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not dropped. > + check there is no rule listed. > + > +Subcase 5: MAC_IPV6_ESP mark+rss > +----------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / esp > spi is 7 / end actions mark id 2 / rss / end > + > +2. send matched packets, check the packets are distributed by RSS with F= DIR > matched ID. > + send mismatched packets, check the packets are distributed by RSS > without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are distributed to the same queue without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 6: MAC_IPV6_ESP mark > +------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / esp > 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=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 dst is > 192.168.0.21 / udp / esp 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_NAT-T-ESP rss queues > +------------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / udp / esp 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_NAT-T-ESP passthru > +----------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / udp / esp spi is 7 / end actions passthru / mark id 1 / en= d > + > +2. send matched packets, check the packets are distributed by RSS with F= DIR > matched ID. > + send mismatched packets, check the packets are distributed by RSS > without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are distributed to the same queue without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 4: MAC_IPV4_NAT-T-ESP drop > +------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / udp / esp spi is 7 / end actions drop / end > + > +2. send matched packets, check the packets are dropped > + send mismatched packets, check the packets are not dropped. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not dropped. > + check there is no rule listed. > + > +Subcase 5: MAC_IPV4_NAT-T-ESP mark+rss > +----------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / udp / esp spi is 7 / end actions mark id 2 / rss / end > + > +2. send matched packets, check the packets are distributed by RSS with F= DIR > matched ID. > + send mismatched packets, check the packets are distributed by RSS > without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are distributed to the same queue without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 6: MAC_IPV4_NAT-T-ESP mark > +------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / udp / esp 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_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=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 2001::1 dst is 2001:= :2 / udp / > esp 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_NAT-T-ESP rss queues > +------------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / udp / > esp 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_NAT-T-ESP passthru > +----------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / udp / > esp spi is 7 / end actions passthru / mark id 1 / end > + > +2. send matched packets, check the packets are distributed by RSS with F= DIR > matched ID. > + send mismatched packets, check the packets are distributed by RSS > without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are distributed to the same queue without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 4: MAC_IPV6_NAT-T-ESP drop > +------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / udp / > esp spi is 7 / end actions drop / end > + > +2. send matched packets, check the packets are dropped > + send mismatched packets, check the packets are not dropped. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are not dropped. > + check there is no rule listed. > + > +Subcase 5: MAC_IPV6_NAT-T-ESP mark+rss > +----------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / udp / > esp spi is 7 / end actions mark id 2 / rss / end > + > +2. send matched packets, check the packets are distributed by RSS with F= DIR > matched ID. > + send mismatched packets, check the packets are distributed by RSS > without FDIR matched ID. > + > +3. repeat step 3 of subcase 1. > + > +4. verify matched packets are distributed to the same queue without FDIR > matched ID. > + check there is no rule listed. > + > +Subcase 6: MAC_IPV6_NAT-T-ESP mark > +------------------------------------- > + > +1. create filter rules:: > + > + flow create 0 ingress pattern eth / ipv6 src is 2001::1 dst is 2001:= :2 / udp / > esp 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: 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 > Note: the error message may be changed. > -- > 2.17.1