From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0043.outbound.protection.outlook.com [104.47.0.43]) by dpdk.org (Postfix) with ESMTP id 8FEE12030 for ; Thu, 20 Jul 2017 17:20:36 +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=oyr7TPFbjMQXRKbwbQt/tnkK+wRUBERMlILhgaPLpRc=; b=vgGwH7Laa3Ee6iuttea4/KzmnA0OlLaD5Ut602956em+kroaPkD4Gj5PiNHJB7xnK/pA+PNsG3MmdKBLvQRuQRxs6nzRH9ngkVREU08Nu6kfipV0C8sUeGEhfWajpe5MOIOhw5wAGcC9l3DzE5Ae6eOXyZgKXuZj9ZwERDUE2hg= Received: from VI1PR05MB3149.eurprd05.prod.outlook.com (10.170.237.142) by HE1PR0501MB1931.eurprd05.prod.outlook.com (10.166.87.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Thu, 20 Jul 2017 15:20:33 +0000 Received: from VI1PR05MB3149.eurprd05.prod.outlook.com ([fe80::b476:1b58:3bb9:b96a]) by VI1PR05MB3149.eurprd05.prod.outlook.com ([fe80::b476:1b58:3bb9:b96a%13]) with mapi id 15.01.1261.024; Thu, 20 Jul 2017 15:20:33 +0000 From: Shahaf Shuler To: Sagi Grimberg , =?utf-8?B?TsOpbGlvIExhcmFuamVpcm8=?= CC: "dev@dpdk.org" , Yongseok Koh , "Roy Shterman" , Alexander Solganik , Leon Romanovsky Thread-Topic: Question on mlx5 PMD txq memory registration Thread-Index: AQHS/wDDey9LiwbwREKsJyEAOfqiVaJYgfgAgAIuloCAAhE5gIAAAuWAgAAAR0A= Date: Thu, 20 Jul 2017 15:20:32 +0000 Message-ID: References: <75d08202-1882-7660-924c-b6dbb4455b88@grimberg.me> <20170717210222.j4dwxiujqdlqhlp2@shalom> <85c0b1d9-bbf3-c6ab-727f-f508c5e5f584@grimberg.me> <20170720135548.qlkjnmzthd2vep5e@shalom> <957f84fe-199a-e016-c21c-ab54a732e561@grimberg.me> In-Reply-To: <957f84fe-199a-e016-c21c-ab54a732e561@grimberg.me> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: grimberg.me; dkim=none (message not signed) header.d=none;grimberg.me; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR0501MB1931; 7:py/qbUrZN0ZCb/w+GPqjd/Htzv8RkmSVS3fYHmiPdz+AYR5VXhlNaq4M1xC6N6qTBYHcMCrR51LOQbVeU3s+6YX4fk8t5meKy0l8XVS+MeBOTdvwxg6ENxQTy5cRZ88tk24L3n+Fk3IQyHDzSwPIog0WHdsmZ3meDNH6rqRekmYyWUmpgX7YHdozIkOC/orNXdoOkeCobLKXe4Ol0QJNrEkGRXH/g1vNpYP5kgtubYIG/pHazd4WVXM0bzelAS1dN2rixeO4Q+mjuWGjhqg5CgqhXyw2862c3BqVOXj9k7k15pqD+4MdRjCBbM0v+FvyWM0GmjahmSi1gWpr0MhwDgDoWbbitskV3k3p7RVXGcb/cXqaE649KvoSoN1Gke7J5Jg9CY/CXZJ6VV/qFgWD9pPUTRjTzAz87v5vXL35XIt+xPyhFReCfrZut2qx2umVCAHEm96jf4GCgHvnYRy0zf78YQPgt8/sZQdfoU3p2l6mvnDRnlwvH9NXVAvSSiwmnv/+zw8UO6MVFF1uk0ldY8XkKEu0daeGUkDTdITjkeRad/YMqmYu/RW8VmMdVm0jF7hxw9fnj6Hx2bx/t9ssFnYdH65eS+Kj47eXXTs8IGLs+4/sgCNLq2s6mlcCoykVwxzECFO3BHJKTr0kL3iLtQP5lEtjVjMHdeR/OWAcCXaoTyh6QWivGPvLn9ot5IXb14YzxCymRce/IBJus4GdnZparwdyDYSYc2Ubi8c/oSjX2mdpKrlxXXpBukHJubxaiF+tkj9Qt6yx/cb3Xr9UME1bv1kxIx300/+TC2cfTzc= x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-office365-filtering-correlation-id: ee1f87b1-a2e5-4dca-9236-08d4cf82dd45 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:HE1PR0501MB1931; x-ms-traffictypediagnostic: HE1PR0501MB1931: x-exchange-antispam-report-test: UriScan:(158342451672863)(236129657087228)(192374486261705)(247924648384137); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123558100)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0501MB1931; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0501MB1931; x-forefront-prvs: 0374433C81 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39840400002)(39860400002)(39850400002)(39450400003)(39410400002)(39400400002)(377454003)(33656002)(5660300001)(305945005)(7736002)(3660700001)(3280700002)(102836003)(189998001)(2900100001)(66066001)(7696004)(5250100002)(6116002)(6436002)(2906002)(99286003)(93886004)(8676002)(86362001)(55016002)(6246003)(107886003)(50986999)(6506006)(81166006)(3846002)(53936002)(54356999)(38730400002)(53376002)(76176999)(74316002)(966005)(54906002)(8936002)(6306002)(478600001)(2950100002)(229853002)(25786009)(9686003)(4326008)(14454004); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0501MB1931; H:VI1PR05MB3149.eurprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2017 15:20:32.9667 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB1931 Subject: Re: [dpdk-dev] Question on mlx5 PMD txq memory registration 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: Thu, 20 Jul 2017 15:20:36 -0000 SGkgU2FnaSwgDQoNClRodXJzZGF5LCBKdWx5IDIwLCAyMDE3IDU6MDYgUE0sIFNhZ2kgR3JpbWJl cmc6DQo+ID4+IEl0cyB3b3JzZSB0aGFuIGp1c3QgYSBkcm9wLCB3aXRob3V0IGRlYnVnIGVuYWJs ZWQgdGhlIGVycm9yDQo+ID4+IGNvbXBsZXRpb24gaXMgaWdub3JlZCwgYW5kIHRoZSB3cWVfcGkg aXMgdGFrZW4gZnJvbSBhbiBpbnZhbGlkIGZpZWxkLA0KPiA+PiB3aGljaCBsZWFkcyB0byBib2d1 cyBtYnVmcyBmcmVlIChlbHRzX3RhaWwgaXMgbm90IHZhbGlkKS4NCj4gPg0KPiA+IFJpZ2h0DQo+ IA0KPiBBIHNpbXBsZSB3b3JrLWFyb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