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 42382A04B5; Wed, 30 Sep 2020 16:56:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2A6081D659; Wed, 30 Sep 2020 16:56:32 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id B48D32BD8 for ; Wed, 30 Sep 2020 16:56:29 +0200 (CEST) Received: from HKMAIL103.nvidia.com (Not Verified[10.18.92.77]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 30 Sep 2020 22:56:28 +0800 Received: from HKMAIL102.nvidia.com (10.18.16.11) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 30 Sep 2020 14:56:28 +0000 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.57) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 30 Sep 2020 14:56:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IYSQ5dQMr+0vZ9eetLfnF5T/sm2SD9meTVk6EUTT1TA9B5YdzJyCpxpeYPKf/US8csh2RguKSd0zCM6Qww4ZdVZ38WEq+LMYifVmGbkBaB83vdqajyOC1wrmPuG61BjctdjaR5AMIWyJr6spzrcNKx2gwV/NNlU8hXXsfxLPKDz9HHJwVBOGY6qYnfD8i7lhLRLOkvZpHyEZzsX3Tp83yZKwx+YpTLlmniVFDgwCWQpnuQtaifC1+NfCwFR+9QuoslnzxgjJNbSohMFATWoRNQ/jf17WJBRqL89cBRHEHQMZC4OYzoAj5vbXBriBCQF/3rRsodGXnPY9vmFXb1SOOA== 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:X-MS-Exchange-SenderADCheck; bh=/71GAQdODNiPFrgybDErEEVBgNOLXjqQR8G3bmQZY3Y=; b=A5VUp9nicw+df6lvDhCoU7GFRzqxwvVd5iwrP9U8gudEeqWD1qe1tGrmDWOF0b5rHjIeoS1F9ng6aYtfZT5kG88P8qSRHwRcOthcpmxC4vbp7Zp1t6q8XmWrOjOQWhDgqlNqQgvoPLdUizi5RkPgutxSbLGje83yQ5Cf6OGKdn/4gk2M4u1hpeIUx4jcKVqrsnYyfnj2mTEgvKfhDCGgq9sITVEXsMjl6UlJuAcwt3sXjXtThtTw9cCm3HO9hnbc+6hW2pK690nshBdMDcz2UWgZRnaf1KpstELpr/hpV1UZ7yjzEk1Mh2AmcI+w8iw4gjhBGQIVEx8qrBgq0neKng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from MN2PR12MB4286.namprd12.prod.outlook.com (2603:10b6:208:199::22) by MN2PR12MB4517.namprd12.prod.outlook.com (2603:10b6:208:267::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Wed, 30 Sep 2020 14:56:25 +0000 Received: from MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f]) by MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f%8]) with mapi id 15.20.3433.035; Wed, 30 Sep 2020 14:56:25 +0000 From: Ori Kam To: Dekel Peled , NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" , "konstantin.ananyev@intel.com" , "olivier.matz@6wind.com" , "wenzhuo.lu@intel.com" , "beilei.xing@intel.com" , "bernard.iremonger@intel.com" , Matan Azrad , Shahaf Shuler , Slava Ovsiienko CC: "dev@dpdk.org" Thread-Topic: [PATCH 05/10] app/testpmd: support IPv6 fragment extension item Thread-Index: AQHWlzPKw+zAKw66HEmOExaBMXcUtamBRTjg Date: Wed, 30 Sep 2020 14:56:25 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [147.236.152.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b4e526fe-096b-45ae-eb21-08d865510129 x-ms-traffictypediagnostic: MN2PR12MB4517: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2733; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Tiz8Dbw5fxTa4qDS6sDIFhPHH+4AvTyWCxTc3L/oaTJIJn1G2onhdvfn25XGIfXf17v1nJUWKhMWXk4TEsZQpueUKH4tatVmDpJWrgS7yUfCAEJXmEYjOeHARgy34u7RGG6+NxpNjWipIWNkwryhszW0t1RY8gNaiqb+NYDHI0/PrvEjI04r8Doluhitp6Q8x63zZfAC6KgU5BlAHlG9eEbJXBwfx1Gwm3GM+/pXchScJ/D/pPYqvBAQVdUkfkNQMdzgq+V1zdEKvZc9HKHhf4ye+2zpOh22Wdl36xPdTJSfKT0dd6QYy+c0s7eGhv3I1C8rrv1Ief6JuMBbAlv56A4fQ82UjR/yWR8PNQBvdsk/YjIj6weHF/AXEfWCkSrUuVLZo7Kq9ktig0Tv0PR35Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR12MB4286.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(366004)(396003)(136003)(376002)(66556008)(8676002)(64756008)(66446008)(66946007)(66476007)(6636002)(4326008)(316002)(478600001)(45080400002)(966005)(76116006)(5660300002)(9686003)(2906002)(83380400001)(8936002)(6506007)(71200400001)(7696005)(33656002)(86362001)(55016002)(26005)(110136005)(186003)(52536014)(921003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: P2g8moWQou2tJr8TsVLbd+IbWPrLyqqKS+gL1I68IgU3GR3arbDaElIGin+M3+z/eGrJxpd7qZu/LcRw7DtOoyJIAmImwriKBf1vcXOna6fdDSBj39lK5ckbHn0NpHAmTxHBkGFGlvoIAfOHQCjGUkgnTyiiW3EwOQ199gvthEk7SHOGQWRU6lYxmx4XDjCM9sOvdH7hNx8hb0mIhBzbjvPh/pM1D7UQOZyg3kqN8IAP5SSZPBP58ILixbbGJl4vIQoeG3ZARKAWN/25IpVjDWEd6gRHycCZMGu9/fLyK/SY1JArJ2jgYj99x8mF1yoJCETw1m2sQiuAc+K+8v1DyFsth3sdy5bE/8LQxl3mjN/frsdT1mrb18cq2jPiLoerlUM3s9283UU8T82p6DzYqCKHHEfg2ngltE+k3Un+Xa8rfV+XRRl1jQchEMYS0FqPhdS768DFGkWUqVKcMIfXHajgs3E9bNYtBmvFlFUS5hNXuWpjDiP7J7yXfS7bZwHFnZdLY9t+U2yodwn2YTqzg9LUJA619nkJGzR3FYMOt3PsUvi3u+MP/4oQ796rML/I61D5Ddd4ms4fCqka9UuJzaFmTmwVkrf+Ko0Q//gNU71bmioDOgPUFthxXrxUf5j+Ilz+gQ6UiY6XNNZsZr1WHw== 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: MN2PR12MB4286.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4e526fe-096b-45ae-eb21-08d865510129 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Sep 2020 14:56:25.7055 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XX98opYpIQjjqRyDGqL4tMln2WklQz7uLNRzNW/BFhc/D/vk4cZL1bxW42igcEJVYQ1agSfkB8vXTEKN6CIGSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4517 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601477788; bh=/71GAQdODNiPFrgybDErEEVBgNOLXjqQR8G3bmQZY3Y=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=PlMRQclNXkoWk4m6Ig7yAj5izkloHkdhFt4Ey69F61u5ZpvHGWkGLiZoYHcRoJaTt AYs7hT/V1LORtJBnVRm2FNYivwQh/IVd7DX//OTRrMb1B3lbV8kbAPYSu571CXOb79 PUwmTDxUwFFBLCFuHhda5DZ9U+iRAyXjzuWUDk/YrdRjNNiCLulnVJDH8wJkB/8iY5 0OkaCAFZBSQaOwMhDMi5NA9U9zN9j7qhKn1UwFmmuGbY2NCro/+/7wvhNOEgdqF569 Gq/TXwVZFy1LWhePuePvd6bqY36Rj9t1dmccjcsfq27Wn7q9sCv0Bmwhi6N3jJfitG q4DMfM2u5c4Og== Subject: Re: [dpdk-dev] [PATCH 05/10] app/testpmd: support IPv6 fragment extension item X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Dekel Peled > Sent: Wednesday, September 30, 2020 5:10 PM > Cc: dev@dpdk.org > Subject: [PATCH 05/10] app/testpmd: support IPv6 fragment extension item >=20 > rte_flow update, following RFC [1], added to ethdev the rte_flow item > ipv6_frag_ext. > This patch updates testpmd CLI to support the new item and its fields. >=20 > To match on fragmented IPv6 packets, this item is added to pattern: > ... ipv6 / ipv6_frag_ext ... >=20 > [1] > https://nam11.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fmails.= dpd > k.org%2Farchives%2Fdev%2F2020- > March%2F160255.html&data=3D02%7C01%7Corika%40nvidia.com%7C1effc > aa06bc943080a7408d8654aec04%7C43083d15727340c1b7db39efd9ccc17a%7C > 0%7C1%7C637370719741604850&sdata=3DzgkbW7cwAMc9gKHeCvtDhQvFB > c5605SqbfMF6hO3iPU%3D&reserved=3D0 >=20 > Signed-off-by: Dekel Peled > --- > app/test-pmd/cmdline_flow.c | 35 +++++++++++++++++++++++++++++++++++ > 1 file changed, 35 insertions(+) >=20 > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c > index 55cc30f..ef166e3 100644 > --- a/app/test-pmd/cmdline_flow.c > +++ b/app/test-pmd/cmdline_flow.c > @@ -193,6 +193,9 @@ enum index { > ITEM_ARP_ETH_IPV4_TPA, > ITEM_IPV6_EXT, > ITEM_IPV6_EXT_NEXT_HDR, > + ITEM_IPV6_FRAG_EXT, > + ITEM_IPV6_FRAG_EXT_NEXT_HDR, > + ITEM_IPV6_FRAG_EXT_FRAG_DATA, > ITEM_ICMP6, > ITEM_ICMP6_TYPE, > ITEM_ICMP6_CODE, > @@ -784,6 +787,7 @@ struct parse_action_priv { > ITEM_VXLAN_GPE, > ITEM_ARP_ETH_IPV4, > ITEM_IPV6_EXT, > + ITEM_IPV6_FRAG_EXT, > ITEM_ICMP6, > ITEM_ICMP6_ND_NS, > ITEM_ICMP6_ND_NA, > @@ -1003,6 +1007,13 @@ struct parse_action_priv { > ZERO, > }; >=20 > +static const enum index item_ipv6_frag_ext[] =3D { > + ITEM_IPV6_FRAG_EXT_NEXT_HDR, > + ITEM_IPV6_FRAG_EXT_FRAG_DATA, > + ITEM_NEXT, > + ZERO, > +}; > + > static const enum index item_icmp6[] =3D { > ITEM_ICMP6_TYPE, > ITEM_ICMP6_CODE, > @@ -2560,6 +2571,30 @@ static int comp_set_raw_index(struct context *, > const struct token *, > .args =3D ARGS(ARGS_ENTRY_HTON(struct > rte_flow_item_ipv6_ext, > next_hdr)), > }, > + [ITEM_IPV6_FRAG_EXT] =3D { > + .name =3D "ipv6_frag_ext", > + .help =3D "match presence of IPv6 fragment extension header", > + .priv =3D PRIV_ITEM(IPV6_FRAG_EXT, > + sizeof(struct rte_flow_item_ipv6_frag_ext)), > + .next =3D NEXT(item_ipv6_frag_ext), > + .call =3D parse_vc, > + }, > + [ITEM_IPV6_FRAG_EXT_NEXT_HDR] =3D { > + .name =3D "next_hdr", > + .help =3D "next header", > + .next =3D NEXT(item_ipv6_frag_ext, NEXT_ENTRY(UNSIGNED), > + item_param), > + .args =3D ARGS(ARGS_ENTRY(struct > rte_flow_item_ipv6_frag_ext, > + hdr.next_header)), > + }, > + [ITEM_IPV6_FRAG_EXT_FRAG_DATA] =3D { > + .name =3D "frag_data", > + .help =3D "Fragment flags and offset", > + .next =3D NEXT(item_ipv6_frag_ext, NEXT_ENTRY(UNSIGNED), > + item_param), > + .args =3D ARGS(ARGS_ENTRY_HTON(struct > rte_flow_item_ipv6_frag_ext, > + hdr.frag_data)), > + }, > [ITEM_ICMP6] =3D { > .name =3D "icmp6", > .help =3D "match any ICMPv6 header", > -- > 1.8.3.1 Acked-by: Ori Kam Thanks, Ori