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 16F1043A40; Tue, 6 Feb 2024 22:24:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00FD941060; Tue, 6 Feb 2024 22:24:11 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2051.outbound.protection.outlook.com [40.107.220.51]) by mails.dpdk.org (Postfix) with ESMTP id C68FB402CE for ; Tue, 6 Feb 2024 22:24:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hll+6yEnVd+nd3B2WRh7x8XS8G4feOUMI1ZtzMUg0d5Q4BhnP+xOOMiqjXgt+prkpT2YY0LKzDxQJ8sZT17nreewUScp7NxukPl8kJ3wqFvJKScljhyny6uX/uGxO6sZZZhdt3GD/m2BsgFrChPUMeEN7YFVRxS5X01pQa01mK0OiZb61TEb8NTUIbKprOOkkMyIMy0bN1iP6jGPx7XM+kW8qfVRP8ShCytp2OytfjZhFuHKNdajCRhUU0wUvLi9TO3pJDqrvAbF9cHMMyVpS5pDwD8L2f/Xkxny+w0zWOH2YCtRfNRfNCLSCNuvQN7B/NyEN5O/3eQj5gBPTKFhAA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2JwAWygxGSxwxLUVycLrSrQIBEYfJNWbC17EQryvfks=; b=hBanItKJIepcJzDUxV5RpSNxcEht83+OOwV2SeST7BHwAcMLagpLQ3EmltmyUCPAWi+ASD3k/7wLF5J46Us6mk6WbEYxd0ErRRQCdpe7b/haqnbfHQJIwLdFB7GtUBQEp6+cQfEwPVNVbqAI0MLtcGAq89PSoNRUCCjz4BNa5WQN91dJXF2SL614PSgiiPm5RayUbIyeKzjlSFXwOjRbI/c2Xj7xt4Znbqa0ZbolbpSQHOvGS5+Jlj5/xJaNBbEQsYqSG6xcJSTnZu2TyjPvTWeKe7nWeCb8HGcTIZ/Bbtzjhlt0nsu7/42ZfdDFgbq1sm2mlaeRJoz+ELs2LPUZ3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2JwAWygxGSxwxLUVycLrSrQIBEYfJNWbC17EQryvfks=; b=yZlQfCr2yCBTGGnhWm+JITif0R8L/kcJoI5mt5R1T3psDD2XX6bfi0iAKcCBJ1avysoZwWBB7wchC6euEG9dL9qz/84I5CmA79jVIAcuJSl7EvXLwbwOWMkpljDAsRcd6CA7gtw6vW63IBJ40vBsM7+aw4uAISH9kor5DvJiOBQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by PH0PR12MB8029.namprd12.prod.outlook.com (2603:10b6:510:26c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.27; Tue, 6 Feb 2024 21:24:07 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f%4]) with mapi id 15.20.7270.016; Tue, 6 Feb 2024 21:24:07 +0000 Message-ID: <3ccab08d-47dc-4fdf-bd73-f602839b8d90@amd.com> Date: Tue, 6 Feb 2024 21:24:04 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 0/4] ethdev: add RTE_FLOW_ITEM_TYPE_COMPARE Content-Language: en-US To: Suanming Mou , thomas@monjalon.net Cc: dev@dpdk.org, orika@nvidia.com References: <20231214031227.363911-1-suanmingm@nvidia.com> <20240206020626.545946-1-suanmingm@nvidia.com> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKK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Te2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240206020626.545946-1-suanmingm@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0581.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:276::11) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|PH0PR12MB8029:EE_ X-MS-Office365-Filtering-Correlation-Id: a9bbf075-1e47-4c38-528f-08dc2759f39b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CCjhOue8S2q73sqaJI4yBHNehgqy2rHs/vF7lcvctjZBnBrGuuB+67ypWUTItPZuLFJ3l7iO0xjbt041ksTQOlbq01RaohLzYi5aIzOhNu4s5UsB/yC593WuPFJeP7nOCoWM/UvZPLYYf8vdvufzwwNYFVuHGe35Xo7jRP4WoAuWML5iQGT4knpXeXKLsrYPp6JrCD0qYbidgAaR7sJG1LrqlnDJxoEge2aOwDV5a6XMO0uTCDToOwAcS6BI58VGygKdjLdzrNIxB3BoE7n0f3cE0TpdrcH9MgOo+Ybvs1X6nV8Iu6XL/lnsMxSUNj+IBr4ugJrXhrD4XYKQoRpVmea8qtCCXuwKZd8O2dDm4IjiQWYfqfkvY0MEneDYjuoCk8dg3s48isuAsUWgsvnNPxoohVTNJT5tMsXSWgxH6jNVQ1aHrzQb7tGCqOlE/+5aBrt2e8ktpuSDRkvXWcyb/IIHxEKVPumJhgX2Ot0dU8jmi8oZtIoKhvAV5WxC2wuC9iu++TZ8VdyPqzRfTUvA7lq5RPHZ26IZNYpqr6fSWePrLbLbtHy+MUo5TXS/7aKCyVZjY391e6fIjnZtBbZr7Fhuq8bLQUHcmHddlb736NastklBVfgghYYh567PwqL1JadN0tZUTMWnSjgjnAVPvw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(39860400002)(366004)(136003)(376002)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(44832011)(2616005)(31696002)(86362001)(8936002)(38100700002)(8676002)(5660300002)(66946007)(2906002)(41300700001)(66556008)(66476007)(316002)(4326008)(6506007)(6512007)(53546011)(6666004)(478600001)(26005)(6486002)(31686004)(36756003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cVkwTFhiVHhKYjh1U0hFbUJTcHhSTG9FMGFmVnpyNVEvaitRSVlwK2N2cEta?= =?utf-8?B?bTNOYjdkcGc4YStKN3hVRWIrbElBRXdhUWRtYk13SlNyUk91UUZqZmJKdE1D?= =?utf-8?B?b1Fzb3VQejRkU1h1UFNhR1ZCdGhuWFJqYUVBcmJUSCtUUjNETnYvV3dvY1Qy?= =?utf-8?B?OFlJWG85WEdGVzFIVlpJdmphblNTUnBYakFzRlRjRXJ0Uk1rSUVSeVYrUmdT?= =?utf-8?B?UzN2T0RsMENISmg2bSs0NEd5MGZIQjNjSFNsYjFrV0IxZ21uMHNwL0V5Vy8v?= =?utf-8?B?TzJ0UU9vRjBxeStUbVFaVnduQ21uR21oWnRhanZXbXg1U0RJeDd6YVFqTGlr?= =?utf-8?B?YmtqS0wyNUozcFVPWXRpdFVydklSMDlCUWUzcERDakt6aVNtbXE2WVVNOURC?= =?utf-8?B?aWtRa1lXNEJLTnhIaE1KWFBJVjJIYy9HN0pMT1Y0ZFl4ZXc3Yy9pWDNFU0pI?= =?utf-8?B?VXZ1aW5CWXpueTI5OTNMSjNrMHEwMGwyQ05GQmxQYmZDbjdwVEZaUGk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82WkI5WG1vS3VW?= =?utf-8?B?aWpWdzF2L1pWK0JGL2c3elJZNWFrZ0hKSkFHNmNLK21MN0RwbVM0VUVaZUlu?= =?utf-8?B?WUhlMUpaUXUxNzBoaU9WN0RLMmcyZGYrMmNPTmV0OWk5ck54N3I4OFhqQ2tl?= =?utf-8?B?UDBXNXdjNERad0lmUjA3NEJld3hNTWNrR2ZnTHdsNHBFT2duV2N3a2ZiSGgw?= =?utf-8?B?dUY5aDYwZEFLT3BMOWVFUzhDMU9oV1JrazljQllzMm5uSklCOFlyYi9EUVJ2?= =?utf-8?B?RjlydlVaUVZzdXlDbzVNUkhoVC9sUnhoK0FGWnEvQndIbDZvMFZvcWJpTjF4?= =?utf-8?B?TUprQ1BMaUNtQit4akJVOHFhSzBtbTZTMWJvVE1YSFlDUFBpZURtYlRyOEs3?= =?utf-8?B?aU5vTnFVYXVndUl2THdFdG9NcklIZlR1UkZhVmRsTzZ1ZTZFUzN6S3ErdHgx?= =?utf-8?B?VXBJUHd4WDhzZFNRMnhuZzc0VTVtdy9uSmZ1a0laWVhKNnRGcG1jUDJLMXV1?= =?utf-8?B?Qnd6R3VRN1hiR3NsL3NQWEJaMjgxMGRLN2p2cGEyUEdlSWExZXUzNUlyV1A0?= =?utf-8?B?YXZKZzFmbVJLT1U2K3haWGZJYjhOMEprYnMrN253Y2Nid0RMaFI0c20xYjky?= =?utf-8?B?eThSSG9jUm9GYmlBdzFTRGtXeUtqOVdiQ2FUVWFDNC9jWGtwMmt3YkZWeUxO?= =?utf-8?Q?oMmfzeTSzp6v1EDfXkheP9vvf?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9bbf075-1e47-4c38-528f-08dc2759f39b X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2024 21:24:07.4543 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8q6YZcxwfpA/hkpWf4vS/bEVCu+5HG8Y7WluHvp8wOhFcJxVWozdF1sLahJD31c3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8029 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 On 2/6/2024 2:06 AM, Suanming Mou wrote: > The new item type is added for the case user wants to match traffic > based on packet field compare result with other fields or immediate > value. > > e.g. take advantage the compare item user will be able to accumulate > a IPv4/TCP packet's TCP data_offset and IPv4 IHL field to a tag > register, then compare the tag register with IPv4 header total length > to understand the packet has payload or not. > > The supported operations can be as below: > - RTE_FLOW_ITEM_COMPARE_EQ (equal) > - RTE_FLOW_ITEM_COMPARE_NE (not equal) > - RTE_FLOW_ITEM_COMPARE_LT (less than) > - RTE_FLOW_ITEM_COMPARE_LE (less than or equal) > - RTE_FLOW_ITEM_COMPARE_GT (great than) > - RTE_FLOW_ITEM_COMPARE_GE (great than or equal) > > V7: > - Moved release notes to API. > - Optimize comment descriptions. > > V6: > - fix typo and style issue. > - adjust flow_field description. > > V5: > - rebase on top of next-net > - add sample detail for rte_flow_field. > > V4: > - rebase on top of the latest version. > - move ACTION_MODIFY_PATTERN_SIZE and modify_field_ids rename > to first patch. > - add comparison flow create sample in testpmd_funcs.rst. > > V3: > - fix code style missing empty line in rte_flow.rst. > - fix missing the ABI change release notes. > > V2: > - Since modify field data struct is experiment, rename modify > field data directly instead of adding new flow field struct. > > > Suanming Mou (4): > ethdev: rename action modify field data structure > ethdev: move flow field data structures > ethdev: add compare item > net/mlx5: add compare item support > Series applied to dpdk-next-net/main, thanks.