From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10041.outbound.protection.outlook.com [40.107.1.41]) by dpdk.org (Postfix) with ESMTP id 917F42951 for ; Fri, 12 Jan 2018 06:48:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=gDl1LGn5j//09wHYZdXBOAXByhe2DmGwyU/4ju1Ao+M=; b=okyDvdUBLrp+gbsL9L1XsmIzFvBFN5upQqyv2EzcZvxn2h6mID8vdPg8K032FAVKsLMqByIGGESEV4h/jYUGGm0GqcRi+GwEmUaxgvfdz5JcUd7VipGRrVfWKK70DGCM5nMYQiPelZKQLZ+P+E84Ylqz32rUny9Xq0ooU3DxfLc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jianbo.Liu@arm.com; Received: from arm.com (113.29.88.7) by AM5PR0801MB1347.eurprd08.prod.outlook.com (2603:10a6:203:1f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Fri, 12 Jan 2018 05:48:20 +0000 Date: Fri, 12 Jan 2018 13:46:58 +0800 From: Jianbo Liu To: Phil Yang Cc: dev@dpdk.org, nd@arm.com, herbert.guan@arm.com Message-ID: <20180112054657.GA4214@arm.com> References: <1515663706-762-1-git-send-email-phil.yang@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1515663706-762-1-git-send-email-phil.yang@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [113.29.88.7] X-ClientProxiedBy: SG2PR06CA0086.apcprd06.prod.outlook.com (2603:1096:3:14::12) To AM5PR0801MB1347.eurprd08.prod.outlook.com (2603:10a6:203:1f::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: fe5a3404-30e6-4722-c954-08d559801734 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020077)(4652020)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:AM5PR0801MB1347; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1347; 3:5QH5r9C3uaekvt2m8FEiW5lox8fhSbEOy+FLwabid07P0+bdaWVp1kHksc0FmKWo0bF7wN/Pw1ku6UFSYpGse4CFbzcEaAXsS+YAvDbaUjr7FyOehXrotRRlh1mQnJXo2ckSs4YAVOF+XVj9CpJjtJAomzPIuRsZqY0rsSAWGWlN/6tdxdP++7YeSbaMVoimMgPhWLeCrmXQa9GI+dX7LE7CRJPpRx+2x3Y2dpgVeZVrpzHqF0+6a3ewpS+owQkK; 25:cDbLT3a52qOoLc2JwnAHJ7P91BdXqS5caVzX6Ogs8dveGHjeZIKJuG3ACbIAV0SGWAv5y/l5AzA/zv61b5doADDfMtQYgcN9PaQcqLUC5UfJsKt/5/Re+EckaSbQyKzF6PcNwLhowt1kiF7beo/t9RL1Wu6rnaeJu1eYz01c3ZBIuVi+yJFrl5+64rZSIXln+dntYMNpnh7dGdyrt1GC7a0R16BwDOlRcPO6rjKbw3jDXONn/QbAkAdTj3rpcXXrzRw+HrCfcPNJQ1U+4GSmURdhkbmbaK3EXJivZiNmfPnSwCNgZmwCSr/CiaFc9cbUG4A6zsqSUa7Uwkl+Vn8hDA==; 31:tSerLEYrW3Dek86RpPWaSgmfijwkbUWacaQXjVbDX7PyYcB3W8D3Fr2wmk+O0FAbz31WE/EYdYew04o/T0//Qk3QZLzr9qqWZOBn3x3P6jVYoHsGcWpswVdphHlwCYiI+T9eTCJ/U/4KRliJxeLVGjgNtd2fmCL8qgRp27/lDFVsacffb786X8RxjZORZx4ie3Xzf2z4bOOMmoxZVY2AZYt+GPH2qRB6oPPcUUy5uj4= X-MS-TrafficTypeDiagnostic: AM5PR0801MB1347: Content-Transfer-Encoding: quoted-printable X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1347; 20:8Ws+5Tbh28IIRoU/YK3yLKaR/6KDHLbYhxfol1hh0WzsTh9UGj4zBass/wB8w+y8gHvfekR3nUasUrruhMUJOmjj4SaztEeCdlPPJQsnJbhQC8VLPcfBLi1TbVTxm/u07oS5Oo/vz9JKMKzXSJpS3J00wA6xsoqWvhBFPfQ8h09+W4Pb1rQVXFx6xGZ6wu/OjhCqy1LsxTjwq6bl5w4Rg8AQo1ZwL566R8zfRLMASHiNAMjMeXRFzX1vFTnol/lmJo2LH+jBAOIcQ9v+43VpYz27CCPnpAVxCYo7TN8NF6Wtuk8DXPFBdLvR6XtvD+YPI/F/50uoC8lb+nmJTeh4/Pxd4sBAtOi2+8lENZXMQq/Qa/clszZNXOeDCkwtTbsuqxJFobucpHtKLkxlN9aCogKRl5XOhUXQIdxsuxYk9CiswpkYErTRDAH4OOhtBh29jU1OyAtgB1Xegm6DcsVLXN2HI2hzTdAhTC4gNKzwhJP2LJLLvwvIfa+khcCkOpd5; 4:w5hdoQbf+bF3z0ey4JqUHs9M7JlQ9sSvoa/ebJhZAvlXE/op90XVLlwyZFto561XaWoEyu0Nb7lsWP9+19jbCisUmbr3Q77+mpFt2OOVq2R5DmgKlxUNovYGkMB6hC4H53/cFzcH+mFyL/Y7zX8iH7WrhftROezP5dKkLubX4Y7TUBT7P4ftXml+rabYkPxqyOX5eGRVn00aUY71dGaM4YFpQNj68FioLwSbB3FjJuau9XIj8MCznprFunp6jJISwPL+nPb37vLH58+8jVd+PSqZtYOond7UIGagsXzWzdGqLeGFJiktsutO0NJjKFh9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231023)(944501140)(6055026)(6041268)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:AM5PR0801MB1347; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:AM5PR0801MB1347; X-Forefront-PRVS: 0550778858 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(366004)(39860400002)(376002)(39380400002)(40434004)(24454002)(199004)(189003)(81156014)(4326008)(68736007)(6862004)(21086003)(97736004)(33656002)(5890100001)(106356001)(229853002)(2950100002)(6666003)(6636002)(2906002)(6116002)(2486003)(52116002)(7696005)(47776003)(8676002)(66066001)(23676004)(386003)(5660300001)(105586002)(16526018)(59450400001)(55016002)(83506002)(36756003)(81166006)(50466002)(305945005)(72206003)(53936002)(58126008)(25786009)(52146003)(1076002)(478600001)(316002)(6246003)(86362001)(8746002)(76176011)(7736002)(37006003)(3846002)(8936002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0801MB1347; H:arm.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjA4MDFNQjEzNDc7MjM6cmd0dmJVc2NnQkFIV3hIK0d0anVpeCtq?= =?utf-8?B?UEp2ajUrK3hNTVpwakVtUlZUd0ZNdU1MaC9LK0MyRUFZOVBESm1zT1ZFZlRJ?= =?utf-8?B?Z3NQZnFXQi82aGRyTEd2YWhLTjBJTmExYWZhQmJ6S2Qwekw2dXlpbS9XcXEy?= =?utf-8?B?SU0wWHBLb1dSRVk1YjRQSG5EbzhWRk5BZkQzSGc3L3hDMFc0cnZ0azJCbGVI?= =?utf-8?B?YjVTK2NvcHdyMDhubEU1b2JXK3RyYVQxY0x6NFJ3Zk1NQmVDaDVhenJWYVpG?= =?utf-8?B?WVdRMEhCTjVLclo2eThSOTFiUTg4a3VaZittdW0zdlhLSGYycys2MlY1K2dE?= =?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/sSJlbnfGlmMNjIUcMdUKRfccGRAejkCVExenlY3XKLZyJOjKEG8vMbdWmsmqx8lxBlmOks6eaLegEL97pPo19WRKKekY=; 5:RLEluAf7CoNhdWwv1rSAjiQwrmYnJvXb9CQ6QfxaqM6+nWYu5JTgZJt7vb/b8WHdMqlxNnZH273YOaYCS8/mtkrD8kaAHO+ImI6jW1DyefxTX0fg3Da/ikxXIp63Lzkd2HIIMI+ry/vMgzw+c8FALdzPi/Hnge+nZiwzkRJ1MwU=; 24:OImdq5U2tBwHlzZq/ZoK2xnt3EtexDyfZbChkvtOnwtc7dC4ZjGPQyPDHF+P+N85JoQMrD+J9kbb5I5uMM3sqRbQfZQVUtSMGzp1/Xan1lk=; 7:wCbUtSV5Ru8tuNeY+bPysIrduEee/w+WtCiMDsYrOs+iKBK8+EcN1R4RbYSqNLmnhvXgGyPxfIvcmG9KPa3gdf7PIP3V9tyUFsqpqKiHguiNrkFmgei/l+tDWqsxqqwV0Yoplk9VWZiZSUoz9DUE+8jv1tG63NyVwz+jCTQFmBD0aj+0zc35wq4kVtHAHmh0en9niV0Y3FBBMYDcnzRNl4wVmW9rKW/eDmyQn88ZuPuHcwUlXqLepSzlOTC0I9hd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2018 05:48:20.7501 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fe5a3404-30e6-4722-c954-08d559801734 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1347 Subject: Re: [dpdk-dev] [PATCH] test/memzone: Fix test_memzone_basic & test_memzone_free issues. 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: Fri, 12 Jan 2018 05:48:24 -0000 The 01/11/2018 17:41, Phil Yang wrote: > 1. test_memzone_basic: No need to free a NULL memzone. It will cause test > termination. > 2. test_memzone_free: Out of mz[RTE_MAX_MEMZONE] memory bound while > reserving memzone for mz. It will flush variable i. Fix by extend to > mz[RTE_MAX_MEMZONE + 1]. > > Signed-off-by: Phil Yang Acked-by: Jianbo Liu > --- > test/test/test_memzone.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/test/test/test_memzone.c b/test/test/test_memzone.c > index 6e80977..24e29a7 100644 > --- a/test/test/test_memzone.c > +++ b/test/test/test_memzone.c > @@ -251,10 +251,6 @@ test_memzone_reserve_flags(void) > printf("MEMZONE FLAG 2MB\n"); > return -1; > } > - if (rte_memzone_free(mz)) { > - printf("Fail memzone free\n"); > - return -1; > - } > } > > if (hugepage_2MB_avail && hugepage_1GB_avail) { > @@ -746,7 +742,7 @@ test_memzone_bounded(void) > static int > test_memzone_free(void) > { > - const struct rte_memzone *mz[RTE_MAX_MEMZONE]; > + const struct rte_memzone *mz[RTE_MAX_MEMZONE + 1]; > int i; > char name[20]; > > -- > 2.7.4 > -- IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.