From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0075.outbound.protection.outlook.com [104.47.37.75]) by dpdk.org (Postfix) with ESMTP id 9B5011C4AC for ; Wed, 4 Apr 2018 14:54:36 +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=HJI9A7ASSK97PsWHPiboEhqx0IrPrEsfCeG2rl6AFh4=; b=CyFlqPa3E8LXFqA5Kce6s9+ka1EjDQp+qL0sTkPDsQBXAeYbnbw5OJOXfKOHefPmYsiSX2OzZ3wIX15Tk58Iyw2KXqPKjyFsXkm6t91PjV2ZGGd6aeGeUwFxm1DcotSvoEBqffSs88efiRjx5IIVHTsOdT13JZa+DamrB47Sk3o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn (111.93.218.67) by MWHPR07MB3469.namprd07.prod.outlook.com (2603:10b6:301:63::20) 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 12:54:32 +0000 Date: Wed, 4 Apr 2018 18:24:11 +0530 From: Pavan Nikhilesh To: Thomas Monjalon , jerin.jacob@caviumnetworks.com, matan@mellanox.com, keith.wiles@intel.com Cc: dev@dpdk.org Message-ID: <20180404125410.GA12750@ltp-pvn> References: <20180217104934.17291-1-pbhagavatula@caviumnetworks.com> <20180404101606.5156-1-pbhagavatula@caviumnetworks.com> <20180404101606.5156-2-pbhagavatula@caviumnetworks.com> <3820145.m9E1F7985g@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3820145.m9E1F7985g@xps> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: CO2PR04CA0061.namprd04.prod.outlook.com (2603:10b6:102:1::29) To MWHPR07MB3469.namprd07.prod.outlook.com (2603:10b6:301:63::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5cdd8bd5-b849-4107-acd4-08d59a2b375c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 3:G4pYgSSB+6qWG49IEtCk9aJO2xAtH0W0qXMJPINJfbB9AlQx8SrOIAcFVmoHhaHTXo3Y1VKv7j/hz4+sf9IflUjmfPNgi1GhB5RmLemIXYGgkDv9Y2lpzOeUjzt4Zw2G3aVwupvcPxyX+QT3MrG+5tmap339Gjwzx7EDfaOyo+rXEjR/gp1HKQc+tbX91rE9uJZrv83mEechgOcxMj5U2GZnip8jV219/JNVcjw/RNQpndA5UbZG2+EbjD0OGE/j; 25:Y7ktfyPa2T2vuDi6ZUb/Af4of284BrkE6+O1HJiYUE+Pv7Hsxd7namfR8AhcPA10ZZbjx2RgkGA1o0XPoCeU6MZYz6YVQxMJtQB0f3YKyreg11vksnHVge1eEtPv7jODmKjK1VySJZvxLTqGbC7F3g6xmun6vvw3G23St0OawqDl9FG9moMhM398PKn5FEp4xQDLy/unR7XDJ5cXIbTu54ssHWtRNybcFcDFx+VFkha3lOJDG7ETIRSQqWAFXPaZWZC55t0Nfo/Ylh/M7EtSqHjqAI3IXnmi8BlizDmF4xskVvYfxnQMUgIfKPluufjgokh2SH2UIri9E/0I6cPy2w==; 31:l5kXOJRtrYmXq6VK7+X3nsbp04DwH9UMg/LtcX+VKhlFxYXF0P3x4VPRuReyvDutOtRowN3vkvKnedh8Y+mkSN/gfPsr+1QFaAX0Gy5mtEzoAMg2u6xIeVTGGnu2nmA4A1/zoOT9/iIvZqq1qA0jv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: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(3002001)(93006095)(10201501046)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:MWHPR07MB3469; BCL:0; PCL:0; RULEID:; SRVR:MWHPR07MB3469; X-Forefront-PRVS: 0632519F33 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(39850400004)(346002)(396003)(376002)(189003)(199004)(51914003)(58126008)(3846002)(11346002)(97736004)(186003)(5009440100003)(76176011)(7110500001)(55016002)(476003)(7736002)(386003)(6306002)(8936002)(229853002)(6246003)(1076002)(6496006)(52116002)(81156014)(53376002)(81166006)(8676002)(305945005)(59450400001)(9686003)(23726003)(53936002)(2906002)(33896004)(16526019)(478600001)(486006)(26005)(10710500007)(316002)(93886005)(106356001)(16586007)(50466002)(6666003)(42882007)(33656002)(4326008)(47776003)(15650500001)(5660300001)(33716001)(105586002)(956004)(446003)(72206003)(25786009)(66066001)(966005)(2420400007)(6116002)(68736007)(18370500001)(107986001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3469; 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; MWHPR07MB3469; 23:/qRhEo1Bfy5jTs2eLnU5WMs2VDXpHF285WJNg5EB2?= =?us-ascii?Q?bXQNg769SVp2bZyUFEkDcD46jroJY02G9DjgMhH/+L9/quWWtew2i2l36J6F?= =?us-ascii?Q?QfgTd/ExnNwivXa9LaL8UL9CQHUPDtzCxCi4XN1CVES6+bzJiydQ5LyXRvwe?= =?us-ascii?Q?8VoHLI68tlzCUxlXp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iE?= =?us-ascii?Q?0I41iTnmFathqmEdcpHRzUOUizrXXmzUF/SBhseoe+Njkh8PIaX94IEZZPPo?= =?us-ascii?Q?N50N5AA+duQ6mfrgWdngv6gzfYBJ9SL9GVxnVgF633bKs8PcJiwNcd+xq59U?= =?us-ascii?Q?Rl5B5+kocnFBfwKOUYM/psJvxPOu1xfL85fGZt1QL54t495dlFePZeWAunFq?= =?us-ascii?Q?7XD2gAYhMSj9B2jcIbSNmqHbZZXSvSniyc1US47mD1gfl5bMDKe3iCFSqwBk?= =?us-ascii?Q?by7vL0GaEto49gSligSMuXPV6LXFTUaA1pF6S0zT6t2HLAgSVgBQHl7sWwDC?= =?us-ascii?Q?ZAof5CezovUHg1xElonTQylO+aQo51Bv1U26Evg4uTcbrlr57kcmf+UyPsB/?= =?us-ascii?Q?iNzgSj7CYhy3qwyUo+j57N0sC2DawgWMmYmTjKdoZS3UMDAMwZi3RzIC45pp?= =?us-ascii?Q?GxWrNl66xmlj84h0ARyPTseR4/+kwcNRYfYGNJchEj8yGkscbl2ZY4h6oFig?= =?us-ascii?Q?lSO+9woI9aYd0abWUWr9M2rAfABu8w/2nHu34o=3D?= X-Microsoft-Antispam-Message-Info: eYARUNEcovS6ygp0W6MwnvMueekmxR97i1KmSLHgVA5pVOtsi9G/6Ay6p4rHM5aQu179IhAdWlA2M/qT/0DJNYUoDa7QiaINVmfkhmJAJARuUUQGiu+dbPBNi5bpBMvkbounF9iqBBeEs6Twl/BRzsS5+92rXWbtBaxUEksOE5K6xJNEh+YqymSkHfDUFq/O X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 6:Oqrg/COVkmC/qxjH1ckGFb4XLbwl8qhLrWCX6C0WYiTyNasj1wotTrK8nYMsI9945qsL3J4AXbgGtdNK4dr/MqkCk7jPZTdi3oai04N3LIla0Bjg81mNrZKaAKZGCvWm5Ul78b5zR2k2BchGAML1Qsg+WQ8f46F5mfid8vF1zpFAKTHBCrblCNAn1dVL4rJKLLulLtRqleIAQra5twJCXaN8ugIzIpqoB5qjVGyNPAsQvdG2+oMURxuESGbKkPPFw+P/KeBFgrUHjUOiDdk+4WZ81YYiJikFIPf/Hvt5YKOI31yYAskJ/Jy2sANN3W9qIKGwNy+94EsNAne0lawTLIbIqYXb36y+CRjyI/skGYiCXNk5f6cFaYYJreMCOxbYpRlrLmMYXtF3YWph+a5dju5KqKgoAitPSa7TP4EhbwYLXkrm3P42lArAiXiLjzn/XVIPwN52Dddi5cA+N7HrbQ==; 5:bxPnjf9XXe4Cohwx3/JEfJ4/gNzgjOuDiaiHEpXa8aN7eFZusM92WUtXLIXHiLLfyNvkjfgvPTHECScS/p+Yx9+c/i+hdOFZQi+jH73FYR7t/qR8loeupbLefIx9irIbWqvHWfkZoU4lIJGE518r0tRxPxpVNQro9zJWAQug6/g=; 24:0DggXJmSWvsEjvsG+R3SILliReEqypxmUZMLgZS+wReUiziDA9zDCm8x4KHMi8uRJySIZYcUGSuPKosallLsr/LAfNmjRl3vm2bAn7pwjZQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 7:wbfjUIQ9HA04MgxPfI9HhDITvSEtVIvaCLQsD8VGKzwPsSUCX1bSu1krcJaiGMCDkycyNWVqeHqMaJ0wx/jOxz/cCU2uYHthsNZnGY553p8AerHnHGlXNYasxzJbovBgTPVOhLTBynvh20+qGPh4PuAw0xpARpWx/pU778F0eYjMplBhfdg52XHYwIOkUU6ZrqSbTdu+kHVZ8cfXtwg1OLRkePKNm/bnFs4qk+G6A012lNz3jxYXA98cRi3DDXEE X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2018 12:54:32.7603 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5cdd8bd5-b849-4107-acd4-08d59a2b375c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3469 Subject: Re: [dpdk-dev] [PATCH v3 2/2] test: update common auto test 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 12:54:37 -0000 On Wed, Apr 04, 2018 at 02:49:28PM +0200, Thomas Monjalon wrote: > 04/04/2018 12:16, Pavan Nikhilesh: > > Update common auto test to include test for previous power of 2 for both > > 32 and 64bit integers. > > This patch can be merged with previous one (related lib change). > > [...] > > + for (i = 1, p = 1; i <= MAX_NUM; i++) { > > + if (rte_align32prevpow2(i) != p) > > + FAIL_ALIGN("rte_align32prevpow2", i, p); > > + if (rte_is_power_of_2(i + 1)) > > + p = i + 1; > > + } > > + > > + for (j = 1, q = 1; j <= MAX_NUM ; j++) { > > + if (rte_align64pow2(j) != q) > > You could create FAIL_ALIGN64 for consistency. > > > + printf("rte_align64pow2() test failed: %lu %lu\n", j, > > %lu does not work on 32-bit machines. > Please use PRIu64. > > See http://dpdk.org/ml/archives/dev/2018-February/090882.html > Thanks for the headsup will send out next version with suggested changes. Pavan. > >