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 B07E8A0524; Mon, 19 Apr 2021 19:45:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A95D413DE; Mon, 19 Apr 2021 19:45:05 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2047.outbound.protection.outlook.com [40.107.237.47]) by mails.dpdk.org (Postfix) with ESMTP id C8D28413B0 for ; Mon, 19 Apr 2021 19:45:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jCba0yF22ni3myin1Qy97LjBtrB0WyfXzbk2lQdRpL60hpoO/DKMGgggHfmTt1jrnNXb35o/UJquHeUAd9loTbvnrbZyeUvAQIsG2eDoEwrCRxRbqe5aoT+fsNLlqHYdniC0msZK3jK7voDR1wcv/m7Spu7c1N6HMbfChjaQBB3O5FAGT4F+w8KjLzKOeDp42+5rYBiXcWuUP6DKKFT9oB1qRz/1w8+xXF1O4SRH3IJKmHYUA2cV+ZyvgvUzRWIKEphxZELRcgkifM2RJQBd5xYF3Suu2TOEzN1IWgxg6lU1kIXKQzhyOfAUCdPSMQ6Dud+u2/y4BFIFR/L/kCWpcg== 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=KjzIBIExw6k37jbihZ/8FYd4yw0h2pRkAeOBWHe/esU=; b=H/atf7LLMQ0gvfW1615lGlyxMaZhBr/fAOPLJwtT8KNODd4xKdgs/Ya6I1VT8LUV8TDWZq33IGfhNj9bjupNuSqqdMQVU2mbMr4ZylJ031Jlb5mP0YKHOBO5A69FI1H6nwjAW+96gFuMWWAjH910rCDJlTTEqb1CvnfYb4OgqsGq/t8Lj0fPkvAqsjEEXFB4ndwVlebh/hnIV2eJtUTw7yJugXwfaaSJ3bJWwJIFVlUrTcZtCwUgQJqtjI9WsUheKkbkVoKN6G9dxFKnap5CRa4UcZyWXMSO/rd3MAeRBZIdxJEsxyeLERCTAd66cjTnvysSkLBRbZGglvql3EvFqQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KjzIBIExw6k37jbihZ/8FYd4yw0h2pRkAeOBWHe/esU=; b=kgkJafU/CS6V9L+4x+9PvCy7rNWRMwOZ45WQPKRUrkvc0kCBkWlLw8fV3kD8L3dAP939MWff6fq75QnApPRX6uHuBiDw11Q8wqeiQESHPjnxIrn3tBbVKgt4lkvhr4xWu6I2K0J0KVzafCMKVcDVjCVBZuM8qjJaRZCqH/Yz4/zSSvlejz1Otp+mp7FgnVqMX+f/L5ERvehZaZUVxu8XR+CFf3MFg+ZL50fxNI8PZyaNecla31wZfIyv6vp5DjgJgPUbsxfi5vMz/tlP8XFJQV3ZwhC8bFI/B+jkSbOnlPCoHHgzfCG/+/nriM4ECz/yeyf/BeRXrZEc/lM6h8knZg== Received: from DM6PR12MB4987.namprd12.prod.outlook.com (2603:10b6:5:163::31) by DM6PR12MB2620.namprd12.prod.outlook.com (2603:10b6:5:42::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Mon, 19 Apr 2021 17:45:03 +0000 Received: from DM6PR12MB4987.namprd12.prod.outlook.com ([fe80::f5ce:c5a8:6aec:e308]) by DM6PR12MB4987.namprd12.prod.outlook.com ([fe80::f5ce:c5a8:6aec:e308%7]) with mapi id 15.20.4042.023; Mon, 19 Apr 2021 17:45:03 +0000 From: Ori Kam To: Jeff Guo , "qi.z.zhang@intel.com" , "beilei.xing@intel.com" , "xiaoyun.li@intel.com" , "jingjing.wu@intel.com" CC: "dev@dpdk.org" , "ting.xu@intel.com" Thread-Topic: [PATCH v4 1/4] app/testpmd: add packet id for IP fragment Thread-Index: AQHXMD1AmSTQD7PDVkyxJST/OyPQd6q8JkEA Date: Mon, 19 Apr 2021 17:45:03 +0000 Message-ID: References: <20210324134844.60410-1-jia.guo@intel.com> <20210413081032.60509-1-jia.guo@intel.com> <20210413081032.60509-2-jia.guo@intel.com> In-Reply-To: <20210413081032.60509-2-jia.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [147.236.145.126] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d8b30d3b-1e3f-4be9-bd7c-08d9035adcbf x-ms-traffictypediagnostic: DM6PR12MB2620: x-microsoft-antispam-prvs: x-ms-exchange-transport-forked: True x-ms-oob-tlc-oobclassifiers: OLM:3044; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iJLPUN/ucpBJmlGrVwHkuKQnZcy+1APWRjlK3fs3p3XZNffzEc5AgWpnGBFavjBkRZKkPR9aHFA+jmWNsuNGf2gO6RoovqdGxdu7oSeSvgrM/6/rXqYMzn+zq4/fc9KBMVHoWpGyHJeREl1VfOsABl4b+yHeOzkMUWSwwF++NSwwlVEhdQi84n/r2HLhtsYvhpkmP9qNZs4Uk4rzdDqndpqguvL+TKWYJbQrD4q/MQUXaVjip974bwxpO5SFAHa67O9bPREbiqav5gwgcj3XxbiFz4rg22FjbTNtxigMrFfCquess1nExkljqGOXVhs8dugrgk26dCdgg0s35vtSRY5aNN2bNOaYDXJA+BZR9GwXijs16KOc21EHza5AKJvD230T5wZ3BOvNKarqIo7yyLoDkDI1e3wqEJV76XieZSRZqbGjaY/UKM+x0A2LzFqje3NxUmJY30ydErsEgh0C9XJylihlMSU7Wap7ClrYzYxVf3lrQW1sc4isGFEh39nEBSsktI6VhOGu25ynNcBJ85g9V7TQ/rIWIj3ZNNCpNbB0ZL71mbSiJZT/kzCXm9GojyFPuX20vVkDoKt9bFImJCvLKLmmFMSej7tLENLhynI= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4987.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(39860400002)(136003)(366004)(396003)(346002)(6506007)(53546011)(8936002)(8676002)(9686003)(26005)(186003)(38100700002)(7696005)(86362001)(83380400001)(54906003)(52536014)(110136005)(55016002)(316002)(66446008)(66946007)(76116006)(5660300002)(64756008)(71200400001)(66556008)(66476007)(478600001)(4326008)(33656002)(122000001)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?ktia12pT3M8XU1utl0c4nnzlYGKJPSevdf4QVvTd/A7PUT8XLZCPHwmmkVnU?= =?us-ascii?Q?PDnRwbVDbOOtqgx/yLHcMo1SVG/7ifs6+Fnp/s1XgzexVuRUSavv8snBX0ee?= =?us-ascii?Q?W8RCwrjHuIDxxfE7sKjGQ/6hPBUYrHBDKmzr6olI8agcC59XIhOpFP28utxP?= =?us-ascii?Q?TvK9d8sCo0CvzmDAyYzPVq78PwZlOLsnHd5kC2+zjZDKHvuK90DnGmICgtkc?= =?us-ascii?Q?efD1L1sgH+tQSaPFIgU9jZffTSLT/AdgbOl+Tq9tKsumvqXntfUKcppR4zxu?= =?us-ascii?Q?ANe4zgXVDlOkNeDZ4vbBsnNh8aDCsulpk1uSBXH/c364ONM+xpbPy94ENVt+?= =?us-ascii?Q?iau+pqncyTYdvSvMeIc50RJIr5cxcc/0XqP4M3VLIrsuvorkNL5dLDbMCpox?= =?us-ascii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BW6DJowX4Nr5k6w2+?= =?us-ascii?Q?2voKDbvjsgg+GLPh5FTtGIkY?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4987.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8b30d3b-1e3f-4be9-bd7c-08d9035adcbf X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Apr 2021 17:45:03.3520 (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: 5qdBhxVtu6kMDY0alVKCwxnC+8pm/h17/Sqqzg6pHfCBS/qitFZkuwyoU800WoLyE4G5DGXTor3b0Cs9xy8DNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2620 Subject: Re: [dpdk-dev] [PATCH v4 1/4] app/testpmd: add packet id for IP fragment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Hi Jeff and Ting, > -----Original Message----- > From: Jeff Guo > Sent: Tuesday, April 13, 2021 11:10 AM > Subject: [PATCH v4 1/4] app/testpmd: add packet id for IP fragment >=20 > Add the new items to support the flow configuration for IP fragment > packets. >=20 > Signed-off-by: Ting Xu > Signed-off-by: Jeff Guo > --- > app/test-pmd/cmdline_flow.c | 21 ++++++++++++++++++++- > 1 file changed, 20 insertions(+), 1 deletion(-) >=20 > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c > index fb7a3a8bd3..46ae342b85 100644 > --- a/app/test-pmd/cmdline_flow.c > +++ b/app/test-pmd/cmdline_flow.c > @@ -166,6 +166,7 @@ enum index { > ITEM_VLAN_HAS_MORE_VLAN, > ITEM_IPV4, > ITEM_IPV4_TOS, > + ITEM_IPV4_ID, > ITEM_IPV4_FRAGMENT_OFFSET, > ITEM_IPV4_TTL, > ITEM_IPV4_PROTO, > @@ -236,6 +237,7 @@ enum index { > ITEM_IPV6_FRAG_EXT, > ITEM_IPV6_FRAG_EXT_NEXT_HDR, > ITEM_IPV6_FRAG_EXT_FRAG_DATA, > + ITEM_IPV6_FRAG_EXT_ID, > ITEM_ICMP6, > ITEM_ICMP6_TYPE, > ITEM_ICMP6_CODE, > @@ -1028,6 +1030,7 @@ static const enum index item_vlan[] =3D { >=20 > static const enum index item_ipv4[] =3D { > ITEM_IPV4_TOS, > + ITEM_IPV4_ID, > ITEM_IPV4_FRAGMENT_OFFSET, > ITEM_IPV4_TTL, > ITEM_IPV4_PROTO, > @@ -1164,6 +1167,7 @@ static const enum index item_ipv6_ext[] =3D { > static const enum index item_ipv6_frag_ext[] =3D { > ITEM_IPV6_FRAG_EXT_NEXT_HDR, > ITEM_IPV6_FRAG_EXT_FRAG_DATA, > + ITEM_IPV6_FRAG_EXT_ID, > ITEM_NEXT, > ZERO, > }; > @@ -2466,6 +2470,13 @@ static const struct token token_list[] =3D { > .args =3D ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_ipv4, > hdr.type_of_service)), > }, > + [ITEM_IPV4_ID] =3D { > + .name =3D "packet_id", > + .help =3D "fragment packet id", > + .next =3D NEXT(item_ipv4, NEXT_ENTRY(UNSIGNED), > item_param), > + .args =3D ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_ipv4, > + hdr.packet_id)), > + }, > [ITEM_IPV4_FRAGMENT_OFFSET] =3D { > .name =3D "fragment_offset", > .help =3D "fragmentation flags and fragment offset", > @@ -2969,12 +2980,20 @@ static const struct token token_list[] =3D { > }, > [ITEM_IPV6_FRAG_EXT_FRAG_DATA] =3D { > .name =3D "frag_data", > - .help =3D "Fragment flags and offset", > + .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_IPV6_FRAG_EXT_ID] =3D { > + .name =3D "packet_id", > + .help =3D "fragment packet id", > + .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.id)), > + }, > [ITEM_ICMP6] =3D { > .name =3D "icmp6", > .help =3D "match any ICMPv6 header", > -- > 2.20.1 Acked-by: Ori Kam Thanks, Ori