From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10043.outbound.protection.outlook.com [40.107.1.43]) by dpdk.org (Postfix) with ESMTP id B7C001B6F6; Wed, 31 Jan 2018 08:51:35 +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=JvJQt3ik/fWoUlM/bP4qeJ2oNo3UqMhYQBtbvaGnGQw=; b=fBjP/xl5v2s/WXZHC7QurewwknHYwxLY+hJqqlolRzTiUou8llpg4f+JS22fSwBROSprfGrZbMIp4GWUtMrNuFMW50tJ2ghYdjzLVilPQPGYe944oSWRcNpXMZyhWOlEKHk8LVS+x1L/JyG5kpkVADvNLhpWjmoT1mpbLg0PD7E= Received: from AM4PR08MB0913.eurprd08.prod.outlook.com (10.166.133.135) by AM4PR08MB1124.eurprd08.prod.outlook.com (10.167.91.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Wed, 31 Jan 2018 07:51:33 +0000 Received: from AM4PR08MB0913.eurprd08.prod.outlook.com ([fe80::d14a:1bed:ccbb:52a2]) by AM4PR08MB0913.eurprd08.prod.outlook.com ([fe80::d14a:1bed:ccbb:52a2%13]) with mapi id 15.20.0444.016; Wed, 31 Jan 2018 07:51:34 +0000 From: Phil Yang To: Anatoly Burakov , "dev@dpdk.org" CC: "radoslaw.biernacki@linaro.org" , "stable@dpdk.org" , nd Thread-Topic: [dpdk-dev] [PATCH 2/2] test/memzone: handle previously allocated memzones Thread-Index: AQHTlszKGrezCObqcUGYqBLX4z8zfqONlvWw Date: Wed, 31 Jan 2018 07:51:33 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Phil.Yang@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM4PR08MB1124; 6:zQciO/aXcZW+p1f7egAsKPTY4jyVqDuW5PUvVPMtW1ZOyu8f1+rPBi5VBBO7c0KKXRE61gMfo594RF+WrJVRoncd/X53ErrgaMSJz6HCW+ynfvxao5DIqN2e7bXgWGt3ZdA8q+yztGf488yMUedKnMVmIhQLjXoqpJaOj2lYINKgYZtgVq/fmP46Gkyq8ySctVR/oCJucPN1XpbCbd0SQ7t6OLyAg70iMR38mGb9/jHJt+DLxWEvlgjMwWN6c0F71NqSSW+40Pz9h1DzSsOBgcNzLHRy/oF33HL+PCIYbljRxltIeRFWnnLeELAmxY9wUVXUjIcXIsWntVo9Q4JEjInBqF51MWxrclLmCa35z02ZCJFo17ceMesgztQz1Jms; 5:jgoqcXdoWJskF1/YRGBgOjT65msc1ckycS6M4OmHS4HD92O4wzm6I4y6QhazuAX1PQh4fm/UGyYXEXQ1k32aVgtqLiPnGRUUux86eDQQv18L8A9tP7u2XGluoKlh38CQ6S8gezed3XGHv2W/06LvZSAe8fGgSmKZJEl19eGdol4=; 24:2KkHvcGpdFNqQfSZXwt5wYd19gmOIDUIQJOkgYkIUtbzGLaGQeloSVJXJ1CLQUbTd+b4Fx92ka//ksiy6SfkuCZc7u2pYRQ4qWCXKwR3rvg=; 7:Kuyjpabc8bdf7HQoHDWmN6O0eVwref920IB0oo9wwGOyAY9didnQpxDBJcqpZGpm8IwbqT++EUpsWIqdDFp6WmWwLSn8aLmxTKZG2hsjEN8H7WvoHBnCQKvpDkzgVb9jcSXbZUKnbf1RMBzxnr3JE8R+YQAqh5pShDNWQwp8Au6O7b/TyuQDe/qwQ7ewvNS6wKIZUkTHCdKVjaXMAz4NJy3VduPF/AflTiczBGn4xSKveGVmPCtEl0Lzqx1vHhth x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a919fac4-538e-4f5a-fb72-08d5687f72dc x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020); SRVR:AM4PR08MB1124; x-ms-traffictypediagnostic: AM4PR08MB1124: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3231101)(2400082)(944501161)(93006095)(93001095)(3002001)(6055026)(6041288)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:AM4PR08MB1124; BCL:0; PCL:0; RULEID:; SRVR:AM4PR08MB1124; x-forefront-prvs: 056929CBB8 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(376002)(39860400002)(396003)(39380400002)(199004)(13464003)(189003)(54906003)(102836004)(105586002)(86362001)(72206003)(3280700002)(316002)(2501003)(2950100002)(7696005)(4326008)(6246003)(106356001)(3660700001)(55236004)(26005)(76176011)(8936002)(66066001)(478600001)(110136005)(5660300001)(186003)(81156014)(25786009)(97736004)(55016002)(53546011)(3846002)(7736002)(68736007)(74316002)(53936002)(33656002)(2900100001)(99286004)(229853002)(6506007)(305945005)(5250100002)(2906002)(14454004)(6116002)(81166006)(9686003)(6436002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR08MB1124; H:AM4PR08MB0913.eurprd08.prod.outlook.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-antispam-message-info: 58e785dJHUCCt68MZ6HPY15zZgmvWKYCPA2T0Tolf23P1kX1ONtkFdftzM60svAddPIUCTwSpRqQ9Nm3HWyoFA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: a919fac4-538e-4f5a-fb72-08d5687f72dc X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2018 07:51:33.9544 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB1124 Subject: Re: [dpdk-dev] [PATCH 2/2] test/memzone: handle previously allocated memzones 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, 31 Jan 2018 07:51:36 -0000 SGkgQW5hdG9seSwNCg0KSSB0aGluayB5b3VyIGZpeCBpcyBlbGVnYW50LCBob3dldmVyIHlvdSBj YW4ndCBncmFudGVlIGl0IGRvZXNuJ3QgaGF2ZSBkaXJ0eSBtZW16b25lIHJlbWFpbmVkIGFmdGVy IG1lbXpvbmUgYXV0b3Rlc3QuDQpXaGF0IGlmIHNvbWUgZXhpc3RlZCBpbml0aWFsIG1lbXpvbmUg cmVsZWFzZWQgZHVyaW5nIHRoZSB0ZXN0IGFuZCBzb21lIGRpcnR5IG1lbXpvbmUgcmVtYWluZWQu IFRoZSBjb3VudGVyIGNhbm5vdCBpbGx1c3RyYXRlIHRoaXMgc3RhdGUuDQoNCk15IGZpeCBqdXN0 IGNhcmUgYWJvdXQgdGhlIG1lbXpvbmUgdXNlZCBpbiBtZW16b25lIGF1dG90ZXN0LiBJdCBpcyBy b3VnaCBidXQgaXQgc2VlbXMgbW9yZSByZWxpYWJsZS4g8J+Yig0KDQpUaGFua3MsDQpQaGlsIFlh bmcNCg0KPiAtLS0tLU9yaWdpbmFsIE1l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