From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00082.outbound.protection.outlook.com [40.107.0.82]) by dpdk.org (Postfix) with ESMTP id 047E65F4D for ; Thu, 15 Mar 2018 07:16:38 +0100 (CET) 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=YJL02W48+ueIm8pxvw/Md4KyVk+xRcxIEdGAKunfzak=; b=M/1JvV4TJEUmJlRrWg1EqpgzZFrqjl9Vt9FkToiItLJUWrlegL5vUlVqBPrIni3cX1vu7vXwwa7pWvnYIeaBzIiGPPyvxZ5Tdn2tR4vhCymiBLyJPze96yM611plXunhYAxXkZrecpvulZYOtlXG3jWZNlWVSKw5IIzM5EE2ssE= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4396.eurprd05.prod.outlook.com (52.134.108.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.12; Thu, 15 Mar 2018 06:16:37 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::d6c:9063:c9b4:ab68]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::d6c:9063:c9b4:ab68%13]) with mapi id 15.20.0548.021; Thu, 15 Mar 2018 06:16:37 +0000 From: Shahaf Shuler To: Ferruh Yigit , Mordechay Haimovsky , "pascal.mazon@6wind.com" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH V5 2/2] net/tap: use new Rx offloads API Thread-Index: AQHTj5wxF/6t4Zu55EiaMMtK6ByyQqO9wA4AgA8bfkCAAEw/gIAADJOQgAAWlYCAAMLq0IAAV5aAgAEojUCAAR3BAIAAfKwQ Date: Thu, 15 Mar 2018 06:16:37 +0000 Message-ID: References: <1515601248-39458-2-git-send-email-motih@mellanox.com> <1516197874-133169-1-git-send-email-motih@mellanox.com> <1516197874-133169-2-git-send-email-motih@mellanox.com> <95d434f5-438a-19a7-1227-18c1230201c0@intel.com> <8973efd1-ec77-2e51-0516-634ab878bb1c@intel.com> <54a887f7-5d2c-4200-de87-1a96a68df0cd@intel.com> <44688765-996e-4a76-005c-9d2d42fe29da@intel.com> <457bcfb5-b2bc-8616-1cb4-c9b6fdeb0e57@intel.com> In-Reply-To: <457bcfb5-b2bc-8616-1cb4-c9b6fdeb0e57@intel.com> 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.107] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB4396; 7:0UHc/i3rSVC1DYxMB0IRR8oAjF25Yl/XsvcUcAU3wDNqA4eSPQz98c5XwNPNZYO2xb5cqHbb/nlt0X9Pc7PnbiEPcw/28grhocz9MRmh5z9g3UkmW92qMbG6ZzD8RA+1PlH6j9EawdtVVv1Nhjk6yWBGMzu9cmJQpTxUj/9LGfBMyfgpwwQ5Hm0Uf9Hq0C49wu+Tg2zwuiUiu3B3+byS5ypPZYI+kdrKCMbvS+k/CLb927xLNT2tvgwIoSCldxIQ x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 94a06195-d657-48d5-977f-08d58a3c4f26 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4396; x-ms-traffictypediagnostic: DB7PR05MB4396: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(278428928389397)(211171220733660); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:DB7PR05MB4396; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4396; x-forefront-prvs: 0612E553B4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(366004)(39860400002)(346002)(396003)(189003)(199004)(105586002)(106356001)(25786009)(81156014)(2906002)(7736002)(2900100001)(8676002)(3846002)(6116002)(3660700001)(55016002)(53936002)(4326008)(97736004)(81166006)(14454004)(86362001)(478600001)(66066001)(305945005)(5660300001)(74316002)(9686003)(33656002)(6246003)(186003)(68736007)(102836004)(2950100002)(6506007)(59450400001)(8936002)(6436002)(2501003)(53546011)(93886005)(110136005)(7696005)(76176011)(3280700002)(5250100002)(316002)(99286004)(26005)(229853002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4396; H:DB7PR05MB4426.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: nRiwl8kXGgjy6xzFA82nN3zSGRl+Uqa/IPYcplBTunQO5sRM0/0pkZUVIQS2pbHXG3QGetlVW7F7E6mZzwrJcyOpCZm9sC/BFNRfCgf4n4f5ASjLrZPs5eKUAp18sDeuJdIHsa8/wC5Vlx4ZVn/Oosl2fMsfXmQZL60y/145qGYXn8TJNNqnurovZfuzWIDt7MKSUakaPVm7LX8kA2cojLaKLTHRnpRzwMluk9ZBWzJvPCz8VxM/1pw5ryax71XZVomOnIdNFPiZoYVriJ2cqHWjJj5Ov9wY8HNwS2+LfyMYXVtuc/xFvIdg969Z4scUytUOptnz9DcWB1DNq3pdPA== 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-Network-Message-Id: 94a06195-d657-48d5-977f-08d58a3c4f26 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2018 06:16:37.3080 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4396 Subject: Re: [dpdk-dev] [PATCH V5 2/2] net/tap: use new Rx offloads API 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, 15 Mar 2018 06:16:39 -0000 VGh1cnNkYXksIE1hcmNoIDE1LCAyMDE4IDEyOjQxIEFNLCBGZXJydWggWWlnaXQ6DQo+IE9uIDMv MTQvMjAxOCA1OjQ5IEFNLCBTaGFoYWYgU2h1bGVyIHdyb3RlOg0KPiA+IFR1ZXNkYXksIE1hcmNo IDEzLCAyMDE4IDE6NTcgUE0sIEZlcnJ1aCBZaWdpdDoNCj4gPj4+DQo+ID4+PiBBZ2FpbiAtIHRo ZSBhcHBsaWNhdGlvbiBzaG91bGQgZm9sbG93IHRoZSBBUEkgd2hpY2ggY3VycmVudGx5DQo+ID4+ PiBkaWN0YXRlcyBob3cNCj4gPj4gdG8gc2V0IHBvcnQgb2ZmbG9hZC4gSXQgaXMgbm90IGRlcGVu ZHMgb24gdGhlIHJ4X3F1ZXVlX29mZmxvYWRzDQo+IGNhcGFiaWxpdGllcy4NCj4gPj4+IEZvciBl eGFtcGxlLCBQTUQgd2hpY2ggZG9uJ3Qgc3VwcG9ydCBxdWV1ZSBvZmZsb2FkcyBjYW4gc3RpbGwg aGF2ZQ0KPiA+PiB2ZXJpZmljYXRpb24gZm9yIHRoZSBBUEkgdGhhdCBlYWNoIHBvcnQg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