From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0076.outbound.protection.outlook.com [104.47.36.76]) by dpdk.org (Postfix) with ESMTP id 8A1A41C4B6 for ; Wed, 4 Apr 2018 20:36:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EC7yWTfny97YV2MRs3Xpj2FM1cnFMQcBggW7yxJjeJw=; b=GgH4VdxRRtuZ0zb9YSjIT4uInH/pEhGVioSkH4OuzSmLPEJUnDxLkzB/z+jOVEpoX/bTP1lyiXKN9U5WD5tgsbWsdpynUqcWKjQB7JsNoZ1SUP0df1Wj6f7lsP/w9qNQaxrwHnWZgm1ZeKf3wTzQzlPcregEwnnwL8JSiZhbZCM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn (103.16.71.47) by CY4PR07MB3461.namprd07.prod.outlook.com (2603:10b6:910:75::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Wed, 4 Apr 2018 18:36:18 +0000 Date: Thu, 5 Apr 2018 00:06:00 +0530 From: Pavan Nikhilesh To: Matan Azrad , "jerin.jacob@caviumnetworks.com" , "keith.wiles@intel.com" , Thomas Monjalon Cc: dev@dpdk.org Message-ID: <20180404183559.GA2381@ltp-pvn> References: <20180217104934.17291-1-pbhagavatula@caviumnetworks.com> <20180404101606.5156-1-pbhagavatula@caviumnetworks.com> <20180404164207.GA21153@ltp-pvn> <20180404175156.GA5416@ltp-pvn> <20180404181557.GA30549@ltp-pvn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [103.16.71.47] X-ClientProxiedBy: SG2PR04CA0141.apcprd04.prod.outlook.com (2603:1096:3:16::25) To CY4PR07MB3461.namprd07.prod.outlook.com (2603:10b6:910:75::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 365c343b-f57c-41bb-2738-08d59a5af575 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY4PR07MB3461; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 3:EXkV3Qp99njfOkmGbEE4TtamVUvrZWaOELYTeSw9vRpUj31SaYXs9IjUnz79owmEpWpp2S5+kiF4PU9UimQHaaesBup4Pt8bdUN1J/2/2OQKAKMpVukH2ahb/MxZGSeXaXnwNPuVczxB8shxII1z2qitC8PA6BHc8zLyGpCEzjJIkzW3Eh6oWe4UDGwH9BNt8XH88UAeynW8brdl2FFUjtnuRS6LdxOaVj4UX6ah9mTnQ1hFFR+xrf1pRwMMmMS6; 25:/5klAG3xtVsaY0O3IJDFIr9aOJbv+PQdssDVc6B2yGGm/rvVvB/65p4IBxOxnktGhsHTGgBOJZcIFPDN4cwgpunePu1qUhoWTwRIwbjt8VwlObJvsEFjT+JgqmJkUAVsFoGID13SHFu/H+cGnLutUBGAEZZGxPPbbU52aT/wbO7c/pEdhbWNOW8FafatOyI8hdpERKQmdcPm3HspTHU/EumkngFgL+8OuoyzopcGbM+Guu60dZk7ECCvwPo4jG5OM2EAzNWk7CRMCU4uxrWiCSPQZwc6tOQ7PhMo+vFJccP22t/qVym06/g0ZPXdJsPP5/cz06BJHxGUTD8msdotfA==; 31:14CBqJ+OkLpOnYVbrwrs20A04w5mqf6lzSTk3KyR2bKH6wiwkWdWA9koLpb0L46SPnVQgOiFbaOLTh8f0mAQW3rNLztvhrN1VVzKFASRVcJY9TRmlrxwLdXldoq8Xb9sq/U0TE4iR6J6cpx8y3BV5m0FWH+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-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(3231221)(944501327)(52105095)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:CY4PR07MB3461; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3461; X-Forefront-PRVS: 0632519F33 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(39380400002)(346002)(376002)(396003)(189003)(199004)(93886005)(386003)(2501003)(72206003)(2906002)(305945005)(186003)(105586002)(47776003)(42882007)(16526019)(33656002)(106356001)(66066001)(8936002)(478600001)(7736002)(316002)(110136005)(58126008)(16586007)(476003)(446003)(11346002)(55016002)(1076002)(956004)(6116002)(26005)(9686003)(50466002)(3846002)(81156014)(33896004)(81166006)(4326008)(23726003)(229853002)(25786009)(6496006)(97736004)(486006)(5660300001)(68736007)(6666003)(2201001)(52116002)(6246003)(8676002)(76176011)(33716001)(53936002)(18370500001)(107986001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3461; H:ltp-pvn; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3461; 23:KQgTc22CBd0MEXmac/zLlTp4hAEQ/SpcS0d4ZRmIT?= =?us-ascii?Q?kxCARjDsGZ8Fn/LhctMXvRS8pGOz+k/H4rBwlKCjtWmh7BDWnFrwVIMVxtNb?= =?us-ascii?Q?3CuKt6vmI6g1VQs3KIDj+fVryC8TVeOgHTU482aMsR3oXvb26p1uAd62ifvC?= =?us-ascii?Q?jxstBINBiCQja0EEm1rQR71ZHpnm8tTPiWxLFVerRUxEeKQ7ccSwzZ398qiN?=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Egj6cCgWLhgEYGqfqxPdBB6N8aw+BX1t7BkNrDwHPxIsEEA==; 5:17kn4VCJTZMc5JYf3dVGeIrxF7I58jmoyXtb5Txn2YxNkpa/0QKdvIMLz0rARShG/Mhxu+2axXeHDYWMx0WSEzjsum6aqYlViF5j1lR2HT8nbe2XgW6sko7xxpi7bX6wrug7bGYI4ceQ7PobPdXRmtWDQjEILJQmkeutc1dc0Eg=; 24:AYYvKW8ijo07BG/RVdKvlLok3v/U6O/ItuUbGqVTpUPnIuu48v8WIDsPbE/nRlxWNoEDAsU8DpDDfd5mGe/2MpO2vwB0rhYsKKOPySCLAsM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 7:1b9zNAm8ktaU4jvUSt79/qECXp+wkd9wzZXarKu79ARF1ODUg+MJwUsl/SyS3HyyQrXKPngUbIaMS2P3gL++hOUSKD015GIFO5IdwzKExIOVrvwXVHjX5JwkdPArKqdJNAmvtxbGEwAQJx0KsvHFZmR1izrMPoBAwaESUF20EFRyDoy+TswLS2DLIxgyWxl8vsr8dURZgOCrK1UWU/B0ah3l+b9ARIOuk/RLYsY32LiqRilxf7sMX7kUhwF5Z2cX X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2018 18:36:18.2060 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 365c343b-f57c-41bb-2738-08d59a5af575 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3461 Subject: Re: [dpdk-dev] [PATCH v3 1/2] eal: add API to align integer to previous power of 2 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: , X-List-Received-Date: Wed, 04 Apr 2018 18:36:22 -0000 On Wed, Apr 04, 2018 at 06:23:19PM +0000, Matan Azrad wrote: > Hi Pavan > > From: Pavan Nikhilesh, Wednesday, April 4, 2018 9:16 PM > > Hi Matan, > > > > > > > > Got you. > > > Looks like you found issue here... > > > The experimental tag probably should be in a root .h file. > > > Probably, need a fix patch to move it for a different\new .h file. > > > > > > What do you think? > > > > > > > Actually thats just start of the rabbit hole, if we succeed to tag a inline > > function in rte_common.h as experimental every lib/driver that uses > > rte_common.h (almost everything) needs to have CFLAGS set to - > > DALLOW_EXPERIMENTAL_API. > > > > Isn't it relevant only for the libs which are using the new tagged APIs? Static inline functions in .h files will be added to each and every .c example preprocessor output for rte_pci.c which includes rte_common.h: # 231 "/home/pavan/Work/clean/dpdk/build/include/rte_common.h" extern int RTE_BUILD_BUG_ON_detected_error; # 249 "/home/pavan/Work/clean/dpdk/build/include/rte_common.h" static inline uint32_t __attribute__((deprecated("Symbol is not yet part of stable ABI"), section(".text.experimental"))) rte_combine32ms1b(register uint32_t x) { x |= x >> 1; x |= x >> 2; x |= x >> 4; x |= x >> 8; x |= x >> 16; return x; } # 271 "/home/pavan/Work/clean/dpdk/build/include/rte_common.h" static inline uint64_t rte_combine64ms1b(register uint64_t v) { v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v |= v >> 32; return v; } Which causes compiler to throw error as DALLOW_EXPERIMENTAL_API is not added to cflags. > > > Regards, > > Pavan.