From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0041.outbound.protection.outlook.com [104.47.2.41]) by dpdk.org (Postfix) with ESMTP id 523251094 for ; Mon, 3 Jul 2017 22:54:47 +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; bh=i1ivPmt4H6DjSs/6ub8hdFKBh2mcCXuyXwlxGmqWWqM=; b=ustvlIK/qqxvlQv5FKiwzSmtrcvUawlGjXkj6i4sTEaeEe8TSSlNXOkUGteWhhvYCsST29tqx9zeLbXkKIa+5shIZ5st/bPSP3HpWa93RTR4S9brWyXZTO3gODCRVIuBdMPT9klVTI8KmuNr4KiOFHte015tFPsU/hR8ehKSM2g= Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) by VI1PR0501MB2047.eurprd05.prod.outlook.com (10.167.195.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Mon, 3 Jul 2017 20:54:44 +0000 Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::b9a4:d6b7:4f91:9418]) by VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::b9a4:d6b7:4f91:9418%14]) with mapi id 15.01.1220.018; Mon, 3 Jul 2017 20:54:44 +0000 From: Yongseok Koh To: =?utf-8?B?TsOpbGlvIExhcmFuamVpcm8=?= CC: Ferruh Yigit , "dev@dpdk.org" , Adrien Mazarguil Thread-Topic: [PATCH v2 3/5] net/mlx5: use buffer address for LKEY search Thread-Index: AQHS8dZmLQArF6WLbEmtWoMMN7pPJqJCJ1iAgAByLIA= Date: Mon, 3 Jul 2017 20:54:43 +0000 Message-ID: <4771B0EC-2A1E-4A0C-86C5-231289F3E0F2@mellanox.com> References: <20170628230403.10142-1-yskoh@mellanox.com> <1342e608a5a7c45b7af17e9228d6ce643e7ae40e.1498850005.git.yskoh@mellanox.com> <20170703140605.GE18305@autoinstall.dev.6wind.com> In-Reply-To: <20170703140605.GE18305@autoinstall.dev.6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2047; 7:QLADti9vuwlrR0MtqpOov1ypMyoRpo5CXZwmp7Rj+cgPrGmab74cY/0f0b21p87nFAHodr9AR8WNJP0kP+LX3bxiA14w2+Fh6vbYlQIBfATw9vbRJLJ5nTjdO+bPfv2JAZcf2pb5qthjU8AnDQ2DhDqFD1D6I+1UgMVfpvClhMkJt0n2OhM/WLCfL8ppJW91syE+QAMR8EUAf0yTjJEiMeMULrgw0WN/xR9Yj6dS7ZjgctV+3NyhMhZyzk+3p16WulR9D0SJ3jJvkR3PaVWOnVwC7ehtzgjupT959uTclX0+fRcD+XVyGWVtkItaO6i9kCQNc9ZmjNOe7bqV28k6SqjC6X8L8Up1CH5E4ga7NosGW0V/2nl8A8g4KHtnrJQYIG5ShrysLbtenq8ixbop/Xgy8NsKgBP0PDLyAw64L9hbQMYpNW8w7PlcFIW81gZ9CN9BsR41J4IVHz+/D6+a3iPCawkuqHxLCiavn+XoOq183TAY5m1/8f2xIuEF8mWs7cVViR3wsTk/6V6bVFYDpinUSD/Jp8/GjiutkJnOohpWFuC0rPUvlHvby3rYXOD3sHchRrbwOzIxeJVmSZR1TNUAg14xCXm41b+jf0c016sSGYMgSh5WexbGIMgXWcNW+nKrAzYi4obdPhtk4ECfsrtEnFiqz5cmAg4F8y36n1qYLO/ObAUwBkugeRWZlgzjzLQjBEZZ1X1Hyn0EyzMR4Ml4plHO3rwC057Dn6yMaMIE3kQjBXlBmBMGIINGR7oAAZBEq/NkWJuqiDYK0UvCvBCUlf7/+fUnMP6Qtdr5f98= x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-office365-filtering-correlation-id: 392f1dfd-3d80-483b-66a2-08d4c255bb94 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:VI1PR0501MB2047; x-ms-traffictypediagnostic: VI1PR0501MB2047: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(236129657087228)(148574349560750); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0501MB2047; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0501MB2047; x-forefront-prvs: 035748864E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39850400002)(39450400003)(39400400002)(39840400002)(39860400002)(39410400002)(24454002)(377454003)(229853002)(14454004)(3846002)(2906002)(102836003)(53546010)(6116002)(83716003)(36756003)(82746002)(5660300001)(5250100002)(86362001)(2950100002)(93886004)(6916009)(4326008)(6486002)(478600001)(53936002)(54356999)(8676002)(7736002)(76176999)(3660700001)(189998001)(305945005)(8936002)(50986999)(66066001)(3280700002)(25786009)(6436002)(110136004)(6512007)(38730400002)(6246003)(81166006)(54906002)(99286003)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2047; H:VI1PR0501MB2045.eurprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2017 20:54:43.9749 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2047 Subject: Re: [dpdk-dev] [PATCH v2 3/5] net/mlx5: use buffer address for LKEY search 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: Mon, 03 Jul 2017 20:54:47 -0000 DQo+IE9uIEp1bCAzLCAyMDE3LCBhdCA3OjA2IEFNLCBOw6lsaW8gTGFyYW5qZWlybyA8bmVsaW8u bGFyYW5qZWlyb0A2d2luZC5jb20+IHdyb3RlOg0KPiANCj4gT24gRnJpLCBKdW4gMzAsIDIwMTcg YXQgMTI6MjM6MzFQTSAtMDcwMCwgWW9uZ3Nlb2sgS29oIHdyb3RlOg0KPj4gV2hlbiBzZWFyY2hp bmcgTEtFWSwgaWYgc2VhcmNoIGtleSBpcyBtZW1wb29sIHBvaW50ZXIsIHRoZSAybmQgY2FjaGVs aW5lDQo+PiBoYXMgdG8gYmUgYWNjZXNzZWQgYW5kIGl0IGV2ZW4gcmVxdWlyZXMgdG8gY2hlY2sg d2hldGhlciBhIGJ1ZmZlciBpcw0KPj4gaW5kaXJlY3QgcGVyIGV2ZXJ5IHNlYXJjaC4gSW5zdGVh ZCwgdXNpbmcgYWRkcmVzc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