From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7613AA0679 for ; Tue, 2 Apr 2019 09:04:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4E81E2B99; Tue, 2 Apr 2019 09:04:54 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10068.outbound.protection.outlook.com [40.107.1.68]) by dpdk.org (Postfix) with ESMTP id 6DC5911A4 for ; Tue, 2 Apr 2019 09:04:53 +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=JeNYqWmIGbjHwpPOU6ALqMFpsFfqFxD9CAZzCwXQj2U=; b=HLzP1O9UEltSl7kgB2U8GtmoGxAlsMFuUnvam7rs58G+5Ee9+tsxVDaI0+S3vs+2ZqVrjGQkGVX7bfJXtfiZjlDoDyE8aRxGMuK+7oPKfCCAlRN74TwWPdo09LdpYyc0aUMa3XJfGUgC/R/7gqRmF08K4aYlDDeKza8AedpQ2LA= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB3602.eurprd05.prod.outlook.com (52.133.43.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.22; Tue, 2 Apr 2019 07:04:51 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::84f3:7e92:7a51:1003]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::84f3:7e92:7a51:1003%2]) with mapi id 15.20.1750.014; Tue, 2 Apr 2019 07:04:51 +0000 From: Shahaf Shuler To: "Burakov, Anatoly" , "wenzhuo.lu@intel.com" , "jingjing.wu@intel.com" , "bernard.iremonger@intel.com" CC: "dev@dpdk.org" , Raslan Darawsheh , Thomas Monjalon , "ferruh.yigit@intel.com" Thread-Topic: [dpdk-dev] [PATCH 3/3] app/testpmd: map anonymous memory for eth devices Thread-Index: AQHU6I6/4ezSg9XxUE6AVhJD//IDxqYoc0jQ Date: Tue, 2 Apr 2019 07:04:51 +0000 Message-ID: References: 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=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a2c7e03d-8158-4929-359e-08d6b739805e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR0502MB3602; x-ms-traffictypediagnostic: AM0PR0502MB3602: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-forefront-prvs: 0995196AA2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(396003)(346002)(376002)(136003)(199004)(189003)(97736004)(2906002)(66066001)(14444005)(256004)(33656002)(102836004)(76176011)(53546011)(6506007)(68736007)(14454004)(6436002)(3846002)(6116002)(229853002)(478600001)(71200400001)(71190400001)(25786009)(9686003)(7696005)(106356001)(105586002)(53936002)(486006)(476003)(74316002)(446003)(11346002)(86362001)(2201001)(4326008)(8676002)(110136005)(2501003)(6246003)(5660300002)(186003)(54906003)(26005)(316002)(52536014)(55016002)(81156014)(7736002)(8936002)(99286004)(305945005)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3602; H:AM0PR0502MB3795.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: yGnYCIRep+uoqSC2lLyxU9QWP1Nn8PFigQDtiIDOBrbRx0xM/Yg3E3u9fOCx9O3xt0KwpBh/GIvAna938RRYq0E1HwA8jsrfuhDe+t/DCzD4nalZ3PaEFKhYXC/SMy0qil2enK9Q1QVObXf9099Fd1zUNwe3WAVK2Tb/bwILN1jcfQELSU/N9Mokg3z1EX9dO1DKgC6OXK3aV7PmFeTYZ8vbosIHv9leShqWUZextRWBcB4WVMrUGdDEMPoccF576VqRI1nd2JBAJC2MIEmtetsTUOE9Sq5HUTSS5XryFj7SdIB7ZIGXlJ9yGD/GVM5g1MnSke/r2ZDdgldukvadWcd0PX06QiL0fDHXVQ6SIbg1jTRSMiBsY2KdIiJfLjfZQgVLSmCf/eYrA+QnZqAuQi/YJy2XF3rvArPnR9K8irI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2c7e03d-8158-4929-359e-08d6b739805e X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Apr 2019 07:04:51.2379 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3602 Subject: Re: [dpdk-dev] [PATCH 3/3] app/testpmd: map anonymous memory for eth devices 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190402070451.njPnwcmA3A4uW5iRN8NzUDiF8-7LkReiotxggo38gn4@z> TW9uZGF5LCBBcHJpbCAxLCAyMDE5IDQ6MjggUE0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