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 03F5AA0C43; Wed, 20 Oct 2021 19:49:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BEE6640142; Wed, 20 Oct 2021 19:49:08 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 0AB524003E for ; Wed, 20 Oct 2021 19:49:06 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10143"; a="228718878" X-IronPort-AV: E=Sophos;i="5.87,167,1631602800"; d="scan'208";a="228718878" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2021 10:48:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,167,1631602800"; d="scan'208";a="494738738" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga008.jf.intel.com with ESMTP; 20 Oct 2021 10:48:56 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) 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; Wed, 20 Oct 2021 10:48:56 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 20 Oct 2021 10:48:55 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Wed, 20 Oct 2021 10:48:55 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Wed, 20 Oct 2021 10:48:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZyTK8mUw7hIYSzAY0Bt8MRx5C23xHT5GI9qdx8h/5GGRib58jywKRSLNrgfqkrs1PLzNlFWnMIdqtlovL/PX8MQj+wtMclThXh0RkmaYBirC44nO2G8hljg16jbPM5/f8He/T/8B9OUPHRDh6QVPCFbKw45uaJnUuzW+R4uxjFk9LWnMII6csuJlXI/X9jQQGrDX6LQH9CKfB+aIbvNHlnzIO2btgsC3zvKJZcZpGa87QjjSEq8QfCVsGjzpvKfEvlN6L/8NypRBxpS2qSpZ2xUJaTP1dXwm+Po2U4GobATQ1TQYSaozYvURex534GV/XI9CEadXi1TMxmK9fJ95TQ== 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=0gCYWYknlH/oEXMVNbTbJvP1OuHwtcQ/GOiHR8ncwBk=; b=WbU5Cz1lJMs52otmLo9vgtSrjh9tLrMJrDNOYjDgwDYeVE9zRMquYXlkMQkiJeV82ID3ltP9W4KIArowaStf7tZo0LYj96NrJbJVlfI2Ka4SlshBwejKcdwl2j4G6/CFBkr/rh1Z9JEKanfdAoNIHY2DfKtHGFjh7zTHmB7tMG+ztToWW1cpRdzwptNMy4zgROcQEWj8dnr53jt/ZbfwVzbKhfZzw/oUwF1a+fVA5oj3rzhKjNLCn7CzErX9+MGvuPkErS7rDo6q1CcVuDXYS/TAQwOpvLY1RWDgmPwrvOBITvmgNc47W1n1UDVyhexHAMCyuanzYzhx8/tmsz0mfQ== 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=0gCYWYknlH/oEXMVNbTbJvP1OuHwtcQ/GOiHR8ncwBk=; b=LKNYMQ3fWiw3uAzVR1Cxdfque1Y/pClAJ2qnh1jc4XAL43Mja9W75DWnygPw9kdckFv4KhO3cgTkEGVn5XXqsW+/H14LmbMrWIsEzpfJ0wzG6TD59g9Nuo45KJfElOUvm9AbDIgD0d1HxoVSQjezdclZlLpOKFBSImh2RlUGW28= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB5111.namprd11.prod.outlook.com (2603:10b6:510:3c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Wed, 20 Oct 2021 17:48:54 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c%5]) with mapi id 15.20.4608.018; Wed, 20 Oct 2021 17:48:54 +0000 Message-ID: <6bbe6524-e3e5-b662-6a58-bc0c6728077d@intel.com> Date: Wed, 20 Oct 2021 18:48:47 +0100 Content-Language: en-US To: Thomas Monjalon , Andrew Rybchenko , Ori Kam CC: References: <20211013075236.3833915-1-thomas@monjalon.net> <20211020145517.1405713-1-ferruh.yigit@intel.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211020145517.1405713-1-ferruh.yigit@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0071.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::35) 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 LO2P265CA0071.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16 via Frontend Transport; Wed, 20 Oct 2021 17:48:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 421351f6-e826-4a9e-3ff6-08d993f1e215 X-MS-TrafficTypeDiagnostic: PH0PR11MB5111: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J3OSLhIvj4mY2rSIUlqIaJrwMTItxuqAugfI/vQ+lIiCdnCCq6mkQhASwTzAUEpkjklvKI/q6OtOyA5yrIjRtPKxPVP6vptGhotKazOwGwclkfp0mni0nnLKIbiTTvzH9fNfeHW7z5YsBFOhKoklEdy2yx7nd+IfaPEFlnx7i+4C/Jtz9F+CXyZrhiW7m5JC9yxsPl9IV6+Bfl8vflMOiBu9SNayy7RmiPEEfM/4rXHvNOx8mr+AYfkON7EKHb//SGR8wCcFn/23jKrq4hqgXlfmmHHGYtcev2PBUht/SR3VuGeFJjpE1DnZ/RxdOGXx2/zJxD4ievtHCHo0RWI37uSspBK73QPuuoa40dcfjC56lKPSaCafDKWKRyuq5brZTakGt7nS/3RNhaLTy49t5s/wGobIXRsHGWid2px7ojm+2ahHYV1cVFdhjkdBDf9YTkn8CdZDKClkqxpII+YwAqG7SBzHpDZAI7Ldu54LN07+PJRhxwpalHVzK8PZbOknO2l9yIUYpeI5jR82LcnD/vDw5hmXQwMkoEktHCOEUt9brHTkXGKQiFvvWSvS8Vc+/Niy169p8li/G4tBuSTTNiRLiWU9EYvcl7aTi1+orCCCPORZqHQWXecV2K4FfTcz+S4hCfuQFclTe8ItpzvRU76gaOX3i2465uUJ9RttTt52gL62FXjYlFQgC0GrHboX/SBskebD6Sbz7k4dku5euw== 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)(31696002)(8676002)(508600001)(66946007)(44832011)(66556008)(31686004)(6486002)(4744005)(5660300002)(82960400001)(66476007)(186003)(16576012)(956004)(26005)(2616005)(4326008)(36756003)(2906002)(8936002)(110136005)(6666004)(86362001)(38100700002)(53546011)(316002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Uk1vT05wZEtNZ3o4ZW9LOTIvZVI3eHlNekxNTkdFRHZmQk5MSW1VclI5NmJ2?= =?utf-8?B?MHdoZ3hzekhpWW1yK1pxY0grZklFUHNEWWFMRmlWbjEyQkxEM0p5WjhTRkpy?= =?utf-8?B?WlR1N2NDT1ZtTzB2N0xDeXFxekFZRXZHTTVxc2lzVmw2cis2Nmk4TmEzZnlL?= =?utf-8?B?NlFDaEF3WWpFOXF4T1BVY2Zxdm9GcXExQWF5dmFJeENUVUxRUVZZTm1pQklw?= =?utf-8?B?YlY2WGRmSjU3aU5jV3FCOVRwZXNHSDFpT01OOVAweEFhaWlhQ2t5c1VvVU1v?= =?utf-8?B?dk84T25mVStqbzNOZDlSMGw0cDVZM2xFTnJ2Z04veS9iRlFON29pZGhkdzZF?= =?utf-8?B?ZEhYMDFVc1V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8?B?anFRZElTQlFHMmwxMVliNWVMSzkybE9aQTh6YWtLTFBWMFI1cm16UWF2RjVl?= =?utf-8?B?a0dsUTRBZ0VGeldodUlZVkZRd1dxUyt3bXkyRDdZaEo1OXpIM0RrUWQvNmI2?= =?utf-8?B?dTZ5MWpSZXBVVERpdWo5L0tGN0FMNnhVelJyVUR1SkJaeFI4SFo0T3BsWXkw?= =?utf-8?B?cnhXSDNycms5ZXcwQm1raS9jTkhDUjhORVQ0Q2QwcUxKMHVmbmM0ZEJ5dnVV?= =?utf-8?B?QUpSYy9nY3g1NS9LbTFqOUxzUko1TUVhUDFRd1VrdGQxL0ZlanlzUHNnZitt?= =?utf-8?B?NEVRekxTYXJEVFcyVE1iWmRFb01scUZpWlNzWGI2dlhSRE9YUEF1T2xySkFF?= =?utf-8?B?b1NmWHd3TWxZTnp5MlJLbEwvZVpXcW04Z0VRYlFHOUIwbGkrZXNhTkJVU3By?= =?utf-8?B?S085L052WThjL0hrTTNmRnZrcnl1c1hnblc0cWlCV2FVaVFWTEZvV1VWN0dL?= =?utf-8?B?U3RITXZZODBtY2JHVmdYblJjRUZ4U0FRMXVKcHNkQjNhM2dZWGxsZ3A0TlEz?= =?utf-8?B?Lyt2UzVIcy9RaEkrLzJlM0tGTC9CY3BxeDllbE4yNCsvdVNKcjJ1N0V4SmJ3?= =?utf-8?B?dE1UU2h2MVpXYTNaTFJaTDVqZm1hWTNadTZNanVoSzJ0YnRrVmFodTQxOHR5?= =?utf-8?Q?xWrHKFumnFienzI0Kh8+1cq2180RD5f0?= X-MS-Exchange-CrossTenant-Network-Message-Id: 421351f6-e826-4a9e-3ff6-08d993f1e215 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 17:48:54.2246 (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: ferruh.yigit@intel.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5111 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v6] ethdev: replace bit shifts with macros 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 10/20/2021 3:55 PM, Ferruh Yigit wrote: > From: Thomas Monjalon > > The macros RTE_BIT32 and RTE_BIT64 are used to replace bit shifts. > The macro UINT64C is also used to replace remaining occurrences of ULL. > > The bit shifts of ETH_RSS_LEVEL_* are kept for aesthetic reason. > > The API of rte_mtr and rte_tm is using enums for 64-bit variables. > As they are enums, unsigned bit cannot be used. > > Signed-off-by: Thomas Monjalon > Reviewed-by: Andrew Rybchenko Applied to dpdk-next-net/main, thanks.