From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0055.outbound.protection.outlook.com [104.47.33.55]) by dpdk.org (Postfix) with ESMTP id 58410137D for ; Mon, 18 Jul 2016 07:56:32 +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=jQWP15q+ltA7HMWOuXWXqWKCjDJQPK7+RI2TZmo3wMg=; b=kbnQTaF3LgeQETYt3BCid3xGwHvXaEpx91dVEItklRlVo0oK0fIp//0ekEG+H/d+qKCrwG4dVoywJ0kM/eRlF7HGusAwl3WKzIMgV86iwJMyg8QxAxfOK4SwF2LDCdIt9585h/lLOjtsutAJDqz5U9LPDK1ayt1wAxY3p4bLBTY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain.com (111.93.218.67) by CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) with Microsoft SMTP Server (TLS) id 15.1.539.14; Mon, 18 Jul 2016 05:56:27 +0000 From: Jerin Jacob To: CC: , , Jerin Jacob Date: Mon, 18 Jul 2016 11:25:54 +0530 Message-ID: <1468821354-23612-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0053.INDPRD01.PROD.OUTLOOK.COM (10.163.199.25) To CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) X-MS-Office365-Filtering-Correlation-Id: c225fae7-26ac-4158-1f55-08d3aed04346 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 2:RDkGMlJ65YW3K+QtAmn2Cqfs0ATEZLv/Clz+YBG9ztoaiRWiH20I9rW6g4QX39D8Cz5Ob4ctaXiCYHBGNsfiZZBegZQmtfBsJnkn56LUQ1ejSGvECM9Fju7b7efXr+A6sDSe3br5ShR/MVt5CXh7LMnWZIFRQWNkDYV6lUuB1EocDjTZNqpEuu1YmpMU93Th; 3:yC3G4djH4vgn5BqU98Yx/nXYKqvzL47slMPOX5WySepPayVWCjhzPQcV0rrX0YCWC/18v06xEid8QNjk7Br2qqyNxfBrp8dbKDvP6qXsfVXpySXdVK6FlnIVI5rvkdF9; 25:7PKYm9F8mW7zRiAisiG6k6JKN2fnk+TBj2aWz5WrpNpmiLPkERq9yeg9LP9ySb1hIpj4hTUyTIecDHvPIKdbYArxqTNg0tLR0h0aFX6Acz3o2BFhH8mH8+6NFpLj+8tPwAN5rGQY1ThSkrH0M+1ByYHVFqwgfi5d7CLPfSFoLIN46CiPLfyYbfSk4rOH4KkUCatudBP97ZIv+tE6TyMmtF3rW/YGdxc1jiRp7lSea2qhkkJIy0cXBek+7qq85Ls52goOcCabwbmjyt/Lm+71xv17pbebE6TdiZprqsHlJc6JtOsmcvsDs875klLklfgUq6aiJyRcEAXz0jvbXOaKio/El7qfOgH5TMV00vbfbEwE7BUAeyWbwpLgR9a/FFduR07A4QcJ2EcHlValCBtQOkP2kCcTxGwe/FwTFRS5JSE= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 31:hyKXxAiD4YECEefhcVQ3ejclgNxPDRw892gapFXukC57DS0IFwg12PsLg0RfnRkEkhE6cmychlsGJ9NXpeajybwisx4LNPsteWPzhGfSFVZotTAT+7saP8flu8KWoNy3sDCFri/FeEBTEUxRHcQznEKU6e93F3IeDpO9EgQuQZ8F928r7m7HH4uFIZGiyayv5p2fY6tNQ4bd6pR0U3yjGA==; 20:fhknjiEjGi1fC1pqtMCoZq+hEr3ZLos1U0nZfCH38GOriemhRdCJJhDH9o4zii0FP90g/bW38GRQNiDQoocGUHUWhHclTn+2t/WYu+6iZGFcgwWzZLS3Rq5A4rgbQ3ji/yKWHHAaRybEDHaKQteg+4nJLCBIQrcpCLrEo2zumOJdyBzTssxnDAEJLWgAAMGNc0p5sHiDUPJHbEJdhj3TtS6UuI2hRc94hAVDnZOkaqxzQqKMG9qs46yU23BodSYTACROoBnOFY5NgA00dcAntOCqpUvqNSFn9/i4LdIi9af9OlduFDFq1XoyKETM/c2Cs8sfADTz0yXloJVFaqGOrP9bFu/6lMlyi3mo6/zw0w5D0p86O22Qi00874PRS7XO5buNzV8rftuTHVLhqT22+dFZ50cWakEfvBJLLcamKNyYafAf/f5gH8Q1j8E1iQRYsNyGdQFx8HjgkzKzu+WdDQDdH29SX6vvyVp8UK8jku5GFWDlMtRzl4hmbS9Imu/vKut/ANysIqOOcS6yCcNnaPFoPUeWez8FDOFfQGeVT5sPAv+xpQFBjq9tTVf1+WUzpF3VXC0Uj5Z9RKjo7Qlypo9nuSpnAvfacy80Z3ooDp8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:CY1PR0701MB1725; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 4:FgF/xiP+Eg7JJrF6xTQ5VOjtzOPaTD0Ml7M+704+WxheSdz3XXuU+4/3islsHmdWl2LimNZcLSGT0h3LlaxDcHPXzRlm05bxtB8dh92xOtmFVurh2ErogovROZX5ZVP3dxM4S0dlYb5NShFDt/BO4tURZ2MEdEzW2UaJ8COhMYwFfhroahiOMdpXzkhgNqgqCq7X316OKyz+wC0O/OOGvdYZKvy4XaibVHGSpUWHSV5nUbY0t1Eo3CMY0iNm3hQi+/pyIwC9v3VrnvkUYDiwFKjfYuu3uxiSkhkm4rmYjnCz/F+R6Tiuvj18NhPukXeOI5GhfkvZl1RY5uMNG63W9gu2vorx5OP4Ixi9UqmOa5sWInd/kSP9aODcN5hreKoq X-Forefront-PRVS: 00073DB75F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(199003)(189002)(19580405001)(69596002)(68736007)(4326007)(47776003)(2906002)(5009440100003)(4001430100002)(77096005)(33646002)(19580395003)(36756003)(48376002)(97736004)(3846002)(6116002)(586003)(7736002)(2351001)(101416001)(107886002)(8676002)(106356001)(110136002)(53416004)(81166006)(81156014)(105586002)(7846002)(50986999)(189998001)(5003940100001)(50226002)(229853001)(42186005)(50466002)(305945005)(66066001)(92566002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1725; H:localhost.localdomain.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1725; 23:8S9fx/qzJSlgYtBff0rrrnIGVhK4Y5gk0Tg1k5u?= =?us-ascii?Q?V88sC+B7Dimn+CmgI6OqyV5UPgZcf2E0d8CO817unH7K5A5cICBdlKskcuac?= =?us-ascii?Q?w9Y+f6OCygbfT6fEIPXpjOr4Ejhn49CLD2YuLIryyuqll/Gsszslh8DyLzHq?= =?us-ascii?Q?gqnz9stOD6eHna/1AO323mAW8ClQPWcDi07w9mQcAk1XdLg908f/WyBOAC2A?= =?us-ascii?Q?wQF1TT1QqTZK6ypBR8mV34jp5Yua7ICJodQjySmIQdc/t9zNniX+mE4Vhcso?= =?us-ascii?Q?CmaaMVVNgj7jn4SNEBWwEySujFKkEnnd6WHnDrZzR24yqyxptkyNiy0jSR05?= =?us-ascii?Q?fywNeqicr8GODEiS8/CwQtyIevo0q9U/3XM5eOnwVBGimYZDkDZSRFTSQyvE?= =?us-ascii?Q?t85Nvd3rfCl582M5ly+0LC+QHai13S0VmvQXYZpnspfQkj56zpOVoD/thkWi?= =?us-ascii?Q?SBEQ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uCM0gVDbr8cryvRJHcye+7mOW6nSj+Vh3FmaK55ML1nMU5BCfM+joMqxDsAs8NCTfz8Cj7Ae/FBARzkSNf80A1+NCUCU7k3KgsANJa7Ft+HxBS4YzVFL9Obd7yEqninEBMSqzUAbIuT4ORDfCO3g7WWJzUjbhzU=; 5:CzXRsCI0neVTcz2pI9kRevmuLvHa8rclg+YEz8xXRypo0w0creCua+7vKlffPpXmXWmO589g3RIUJLU++UW1D+YC5PbPySKGTgvc0fGWfd44ElX3VLOlt+ngHfWx8jbn6P6sLadzsuW3AMFljnYWbg==; 24:jD6Ww6sBugvVASx0tKhXqU/Yv3EwUzk5aGQV1+9yEyTlyCWFVZPtBB+j0WL5AABZSeuSd7u8hNPMPsswB292Qtjksz/57VFJxk8eR7JB7YE=; 7:J5Z4SysXY3Djb90IlyIuwU2VEw5Hm/OrPxUfMzEV2sRIwvP4ENORu1GHEzej0vvOmMpzo6kNB2k88MpBVNsdSGSCBgoYYGTYd42tKM9raxemFKd61dtljY526wbkfI/DDSA4IgDx7RZtCn0JdjiR0JeJPCjezNIVulu3x3+mEwEV42FydEz7jyAnEi+nbY8mkh71Y8hJ1EpjMTcnzJRx58p+hFYU6aqxVpgjWMsYylsbhHBEJdJguyPy8AZE/zAX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2016 05:56:27.1502 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1725 Subject: [dpdk-dev] [PATCH] app/test: fix refcnt_mbuf_ring size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2016 05:56:32 -0000 rte_ring_create expects the size of the ring to be a power of 2. REFCNT_RING_SIZE value is not power of 2 in-case if RTE_MAX_LCORE == 96. Fix it by aligning the size to next power of 2 value. Fixes: af75078f ("first public release") Signed-off-by: Jerin Jacob --- app/test/test_mbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c index 684ad80..c0823ea 100644 --- a/app/test/test_mbuf.c +++ b/app/test/test_mbuf.c @@ -809,7 +809,7 @@ test_refcnt_mbuf(void) if (refcnt_mbuf_ring == NULL && (refcnt_mbuf_ring = rte_ring_create("refcnt_mbuf_ring", - REFCNT_RING_SIZE, SOCKET_ID_ANY, + rte_align32pow2(REFCNT_RING_SIZE), SOCKET_ID_ANY, RING_F_SP_ENQ)) == NULL) { printf("%s: cannot allocate " MAKE_STRING(refcnt_mbuf_ring) "\n", __func__); -- 2.5.5