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 3F1F5A0548; Thu, 4 Nov 2021 13:46:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 034D0426FE; Thu, 4 Nov 2021 13:46:39 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id CD4AC41223 for ; Thu, 4 Nov 2021 13:46:37 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10157"; a="218892216" X-IronPort-AV: E=Sophos;i="5.87,208,1631602800"; d="scan'208";a="218892216" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2021 05:46:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,208,1631602800"; d="scan'208";a="578580712" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by FMSMGA003.fm.intel.com with ESMTP; 04 Nov 2021 05:46:36 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 4 Nov 2021 05:46:36 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 4 Nov 2021 05:46:35 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 4 Nov 2021 05:46:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CTSSQmjdJHSwsLCPG+dU2gRjo1iMODDo45hQTETM18ZMTfnusZ4EEWGNH4ZBPRm8aZRUKjwIjx59p908PI7eDsx6SN0o2KVEtJkRB6dzn5ajRkMmvKgZcloP80UcaelJOla0NCrs8OxKl3GHt+4eGtaH+FhmAaWYa3vUvsubUjqLeZ4HdVdxMAOuzv9XkSSV/9yBbejrQ6hzRZLjcGhS0ODGxCKViaSHm//y7Z/2ZIvAD8h7Wob1Q9ZIjsStGj4NGiEjZcKr+8pnWt0KdCzEqLRVx1LAJYEX/xdcZnvDLSjBi6J1g0R0xqu286Lh1G41seEU7XDFhQ/vv3hmO8ZgaA== 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=RS1GLc0qswss1KIJPDx0WTa0MCYCaExhkSFE+0teumM=; b=SEnKEJRgnm3WcHEbwThUhei08mFkQLMhSYKYcJ8lT/I6IStWezvJoOK4y8BoPzjdsEFQyiGlnsexvyBrRVWSeabKtG6cPXgDLrbFn69vZfb3LDnd3GBU0lvfX+bO6l5X0QRmBIZEFw1oUccJUZrAo7Hb7B1Z1kPCVKthZHraCem2vsqgKXPV41qub8acoVUTZ7sxEbCJ9hqNhP7A6WwcvIJ6Y/8W9mknVGxYBphRsLqNhr8uFU77XXOJ/CdAJKCcvpgfum8GpuTVEY7RQAiIH0fbvRrCrHY5Fdc9elZ1kk7n32h9L31cd7bfCfhhnox09D1VxodJHtlJFlhdCZ1rLw== 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=RS1GLc0qswss1KIJPDx0WTa0MCYCaExhkSFE+0teumM=; b=W6A/wP8WL7KVKk1SlPn1w3qmemkLMHZo65Guk4/g/haOQ0UVcGg5IVqD7Se5d5/xb/G1XgKkFe50QxTwC96WBklxdkiTCzmbOUUUmNveaa0nUyVA8IkGHaGZjYxOKdiJJ8sDQS50KOWpKxHyMhcabe3VnZ5wpxgfH/ZxZo1+BGI= Authentication-Results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH7PR11MB5913.namprd11.prod.outlook.com (2603:10b6:510:137::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Thu, 4 Nov 2021 12:46:34 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c%7]) with mapi id 15.20.4669.011; Thu, 4 Nov 2021 12:46:34 +0000 Message-ID: Date: Thu, 4 Nov 2021 12:46:29 +0000 Content-Language: en-US To: Gregory Etelson , , CC: Ori Kam , Thomas Monjalon , "Andrew Rybchenko" References: <20211026090554.9128-1-getelson@nvidia.com> <20211104112721.4025-1-getelson@nvidia.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211104112721.4025-1-getelson@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0082.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:190::15) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by LO4P123CA0082.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:190::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Thu, 4 Nov 2021 12:46:32 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eefb5cae-6d86-4641-dcb3-08d99f912226 X-MS-TrafficTypeDiagnostic: PH7PR11MB5913: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2043; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BsT3CwPqRgDvLHlGoIaJK+0le4p9qBsmQ/NJjy2VzeJIsU/ox/a+A0Zfh/jpcQ2wmxjcuYOP4Av1LlpHk8ODE2nwHVp0XyVTgRFs48vAy4TsRVIKbecFtuM+jGKRgBhAw144QSkH8HIycUVU5HiDPgVvLD+VQOyg9ni+0XdNImtcA3ZlVtWPGqoWWukqQ5XwWQZxF1US6BI4ZN3fer2WQQdGf/srbvGIHxb5W1cIuIX3orGbx8+OJh/EDlAEZGrG4r7sWdUgA0s8A1QvvldQIFt2VejA5mLQI0/y4MXSgl4eYYTtbUd/BLZMUUUdauQKV3/jibtaNNdeTa5HFG9at/j8gW3NsPccvVRwXV/LNDW5AzFRuYg+3df3P3ccLsAb+6lQbiXkuiK3MbEQdreH4yNvGb0GDfg86l3DCsr1lku4l4uMGa+9/VeDuJyVBX12oWSisByWhNDO6D41A7igtAjemppAhF0WP9kXLLTB6SqWGjuqfFVbGwoURMVnpeUOLjYAbDf3eacYOXIwYYN+Jv45aokfFIg2zhc8OpNEzS47Apn11Bt6WpuL8kIIFlurZGm45YfK3nmJGakr0e6Usx2RrvDIcUZaq+oaMVEqM6KMXk/Vp4f6f/y9XWq3Ioc24N1qChk8a50SgdKzbMdhP09rShEmbA33Fz4EJCDF6yaZn3mWMiSVVxDNIrEqRU5IK6R3m/uw9jOQZ+hKpvU1bg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6666004)(186003)(16576012)(36756003)(316002)(508600001)(38100700002)(44832011)(54906003)(2906002)(6486002)(5660300002)(4744005)(83380400001)(956004)(4326008)(66556008)(31696002)(53546011)(2616005)(66476007)(8936002)(82960400001)(8676002)(86362001)(31686004)(66946007)(26005)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YnRFWlNmbE5YRUxpNzkvdkwzdjkxMTBuUUMyK1ZBZzRiMER6RFhuYU5QK01X?= =?utf-8?B?cmMwaDRPTDBuL0lrZlpieEtuODBva3FpMEJadTI0TXphTXZPOThlRmFuY2NY?= =?utf-8?B?UlVKT0FyYUJmMHAyaGpjSURObVFWWXhDbmhBSVY0b2k2SEZ1aHQ2SVRtRHlP?= =?utf-8?B?bXE4cXJraWdWeVc4Tk9sZVN2eFZNcUNuWDdTa0pVeVliUDBVZWdhRmxJYVhG?= =?utf-8?B?RDh1VC9tN3pGem9YQTh6b3hzUUwzTWFBSlpnbHFkSTBHK3lqRi9uZEVNQU9Q?= =?utf-8?B?YW1uUkFIMjhMUzlYdzhINkg2azRiVDhpUzd4ZUtOZXZnMVZZelhjUXdreC9R?= =?utf-8?B?S3k1NWprR2ZEa3NzQ3IydVlwTTJ4NFRlcE44Mk1ENlJsWDN5YXlhaCtoN2ZW?= =?utf-8?B?a2E0ak9kYnU5TE9rOFd2enNvclJmbUozOWtXelAwTzcyb2gzWCt2a0FtK051?= =?utf-8?B?ZFE0eVE0SGlZMzJCQkt3aGJmbEU5U2Y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9WLytGbmhIS0tvb3kvTTBhMlRXcjF2SUFYOVVxRlgyV0tn?= =?utf-8?B?Znk5dDgvMmhPaUxZQzVrUE5IMWxLdzgwQ08ycGJNTmJLRnRGemNSUHVJWndF?= =?utf-8?B?bjk5R1oxd1BvRnZXc0hjVlhvbkl1bkt6Sm5scTY5U1lxVCt6ZHBVNUV0aUhL?= =?utf-8?B?UmorQWwzUmNMWlRFc01ud0Z2djErRGk4dVlaY0lEQWR0MHFpM1k2R2VKbG5u?= =?utf-8?B?czF2dnM4eG5lYisyYS9yRldkaHZNSEtoVXN3aC9YdXJUTXBlS1B6ckE5ck5E?= =?utf-8?B?bURVVEpNcUtWNnJldGN2ODlvaTJucDNvQmhhNEVPeWNnNHZieGZYSnMyTkxB?= =?utf-8?B?UGtBbVNYWXlzL3JJVVZEUnR5WTJ6RytLM1FFWkY5MWtPb0lxckVlTHNMZHF2?= =?utf-8?B?ZEdNZTlEc1Nab2pMZkxvU3FyREZLQVdXb21yc1l0TkR6R3hNVDhiTWRLY0x1?= =?utf-8?B?ZzFSblBXNDdobmRScWZXUmZBdFB0T0x2NmFJdjNETUVNMlpnUTJxSUxneTRu?= =?utf-8?B?UjdLdkd2eWxXZGdSeGE0YjBHSW9sWnpnS0lGcU5sUERDbUZZeWVPYXRQWW8w?= =?utf-8?B?Y0xhcEptQmlaUU9nSmsyWXF2YnBva1VGWUJlVnR6R1R5cUxaREVYd3kzUkZo?= =?utf-8?B?a2lrbXpTalQwTHM5NENFdStLUU9WSGkwYitmOVBhNlNCRVNTTUh2YUlqR0V4?= =?utf-8?B?VzNEYllPSS9HZXlXS0taZUVrRmhlcE5nTWMvOWF0WlNGKzFOc1paVkcvdzdD?= =?utf-8?Q?KVKI6sSZeQj0BzSE3H7mMGk=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: eefb5cae-6d86-4641-dcb3-08d99f912226 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2021 12:46:34.3922 (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: +cC+VlDHUCmfEfE2m7XI17Xtq+gAUo2UgWR5qphJM07Zjr8FniYJMb9UyUQqIaMHqSPGbVXx2vVxMH8RWf4Axg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB5913 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] ethdev: fix variable length flow elements support 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" On 11/4/2021 11:27 AM, Gregory Etelson wrote: > RTE flow API defines two flow elements types - common and PMD private. > Common RTE flow types are defined in rte_flow.h while PMD private > types exists inside specific PMD only. Application can create a flow > rule with PMD private items or actions. RTE flow API restricts > private PMD types to negative values. > > Current implementation tried to use negative PMD private item type > value as index in the rte_flow_desc_item[] array. > > The patch allows access to rte_flow_desc_item[] and > rte_flow_desc_action[] arrays to non-private PMD types only. > > Fixes: 6cf72047332b ("ethdev: support flow elements with variable length") > Signed-off-by: Gregory Etelson Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.