From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0062.outbound.protection.outlook.com [104.47.2.62]) by dpdk.org (Postfix) with ESMTP id 3672D2BF4 for ; Fri, 25 May 2018 17:41:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IC0yH0K/ldDCpb2iFaT8fORAbQQBSfh9f/RIjm3PYrw=; b=prgxs5y0cBsJqNyvTZdz/uuqeVZDZQaGvaTCi9SyIs5gLecsZNsjpXnytHGl2awEArWv9cjvSKVjZR7bs0gxtG9Q6papyH9cU7w7b3vLTt6ES/IPdd0cY1EhYoqKwJN8+3zxKCcOJdR6l0afbeyW3oi02p16if3xlr/GmAw+r50= Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) by VI1PR0501MB2127.eurprd05.prod.outlook.com (10.167.196.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Fri, 25 May 2018 15:41:24 +0000 Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::11b2:1e2d:709c:695d]) by VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::11b2:1e2d:709c:695d%13]) with mapi id 15.20.0797.011; Fri, 25 May 2018 15:41:24 +0000 From: Yongseok Koh To: "Xueming(Steven) Li" CC: Shahaf Shuler , "dev@dpdk.org" , =?utf-8?B?TsOpbGlvIExhcmFuamVpcm8=?= , "Adrien Mazarguil" Thread-Topic: [PATCH] net/mlx5: fix memory region cache init Thread-Index: AQHT8/KgP6CxX3XCbU++YuUV7DM3oKRAPAWAgAAx6YCAACfY0Q== Date: Fri, 25 May 2018 15:41:24 +0000 Message-ID: References: <20180525063538.24363-1-xuemingl@mellanox.com> <249F1114-CFB6-41A1-9816-CD545514B553@mellanox.com>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; x-originating-ip: [73.222.116.174] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2127; 7:k85Qmw10rTkdgGY4urIvYK9Yg7d3B+89d4zwKtc3jT+mKvlsNPW7twnbAt59qe5Zx+Zvk+6rYFzbZncCOZffCyQ8c69M7Vh6nnUCjbqmRyCFlu0Y1S7zhERnYIx3iDPM4lE8B+B9QkrI+b7wYzJ+TltGeCTxnXqcFWDf8aXV2Hw6g2JS5XNgIYgDqcHziDzvslIqMZNvpJM4S+ojO63ztSRwFasIBzZKmHTB0WPm+480jYVER2iPRufKQY5/PfJ1 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2127; x-ms-traffictypediagnostic: VI1PR0501MB2127: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(17755550239193); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB2127; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2127; x-forefront-prvs: 06833C6A67 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(376002)(366004)(346002)(396003)(189003)(13464003)(199004)(76176011)(26005)(14454004)(6486002)(8676002)(8936002)(478600001)(81166006)(81156014)(229853002)(6436002)(2900100001)(5250100002)(476003)(25786009)(36756003)(486006)(2616005)(446003)(5660300001)(7736002)(11346002)(305945005)(6506007)(53546011)(102836004)(59450400001)(6636002)(99286004)(6512007)(3846002)(86362001)(6116002)(54906003)(316002)(66066001)(33656002)(37006003)(105586002)(97736004)(106356001)(3660700001)(82746002)(3280700002)(83716003)(53936002)(68736007)(4326008)(6246003)(2906002)(6862004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2127; H:VI1PR0501MB2045.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: wjrFQjj18UUddPomeRFDdyKZZSKWdwESbteP0xW7zD4qrfnCTUjTL+UXtNG7e6pSHzVQw0j/YWU+K7ecuZON9lQvw3a5hKezuUYyNLL0ox/T6gLjSUBytKJaYcCIGNQK9OdUzK6fkiSpGPVCjHlHcPapQuEPHZn25KTHeRZNiMPJuKGdiN9gQejJp18EVOjv spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 90420467-5241-48b7-d1d9-08d5c255f8c0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90420467-5241-48b7-d1d9-08d5c255f8c0 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2018 15:41:24.1844 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2127 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix memory region cache init 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, 25 May 2018 15:41:26 -0000 DQo+IE9uIE1heSAyNSwgMjAxOCwgYXQgNjoxOCBBTSwgWHVlbWluZyhTdGV2ZW4pIExpIDx4dWVt aW5nbEBtZWxsYW5veC5jb20+IHdyb3RlOg0KPiANCj4gDQo+IA0KPj4gLS0tLS1PcmlnaW5hbCBN ZXNzYWdlLS0tLS0NCj4+IEZyb206IFlvbmdzZW9rIEtvaA0KPj4gU2VudDogRnJpZGF5LCBNYXkg MjUsIDIwMTggNjoyMCBQTQ0KPj4gVG86IFh1ZW1pbmcoU3RldmVuKSBMaSA8eHVlbWluZ2xAbWVs bGFub3guY29tPg0KPj4gQ2M6IFNoYWhhZiBTaHVsZXIgPHNoYWhhZnNAbWVsbGFub3guY29tPjsg ZGV2QGRwZGsub3JnDQo+PiBTdWJqZWN0OiBSZTogW1BBVENIXSBuZXQvbWx4NTogZml4IG1lbW9y eSByZWdpb24gY2FjaGUgaW5pdA0KPj4gDQo+Pj4gT24gTWF5IDI0LCAyMDE4LCBhdCAxMTozNSBQ TSwgWHVlbWluZyBMaSA8eHVlbWluZ2xAbWVsbGFub3guY29tPiB3cm90ZToNCj4+PiANCj4+PiBU aGlzIHBhdGNoIG1vdmVkIE1SIGNhY2hlIGluaXQgZnJvbSBkZXZpY2UgY29uZmlndXJhdGlvbiBm dW5jdGlvbiB0bw0KPj4+IHByb2JlIGZ1bmN0aW9uIHRvIG1ha2Ugc3VyZSBpbml0IG9ubHkgb25j ZS4NCj4+PiANCj4+PiBGaXhlczogOTc0ZjFlN2VmMTQ2ICgibmV0L21seDU6IGFkZCBuZXcgbWVt b3J5IHJlZ2lvbiBzdXBwb3J0IikNCj4+PiBDYzogeXNrb2hAbWVsbGFub3guY29tDQo+Pj4gDQo+ Pj4gU2lnbmVkLW9mZi1ieTogWHVlbWluZyBMaSA8eHVlbWluZ2xAbW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