From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-outbound-1.vmware.com (smtp-outbound-1.vmware.com [208.91.2.12]) by dpdk.org (Postfix) with ESMTP id D3BC25A6A for ; Thu, 5 Mar 2015 20:27:26 +0100 (CET) Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 0B9D729D14; Thu, 5 Mar 2015 11:27:24 -0800 (PST) Received: from EX13-CAS-006.vmware.com (EX13-CAS-006.vmware.com [10.113.191.56]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 01685B0161; Thu, 5 Mar 2015 11:27:24 -0800 (PST) Received: from EX13-MBX-026.vmware.com (10.113.191.46) by EX13-MBX-012.vmware.com (10.113.191.32) with Microsoft SMTP Server (TLS) id 15.0.913.22; Thu, 5 Mar 2015 11:27:23 -0800 Received: from EX13-MBX-026.vmware.com ([fe80::858b:7f42:fd7c:703d]) by EX13-MBX-026.vmware.com ([fe80::858b:7f42:fd7c:703d%17]) with mapi id 15.00.0913.011; Thu, 5 Mar 2015 11:27:05 -0800 From: Yong Wang To: Stephen Hemminger Thread-Topic: [PATCH 6/7] vmxnet3: support RSS and refactor offload Thread-Index: AQHQUWxtDC6hpd5oN0+OH1LpEmpSj50OUd0A Date: Thu, 5 Mar 2015 19:27:05 +0000 Message-ID: References: <1424917922-1979-1-git-send-email-stephen@networkplumber.org> <1424917922-1979-6-git-send-email-stephen@networkplumber.org> In-Reply-To: <1424917922-1979-6-git-send-email-stephen@networkplumber.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.113.160.246] Content-Type: text/plain; charset="utf-8" Content-ID: <451965FAD72D4649AB2160AE5038FFF8@pa-exch1.vmware.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "dev@dpdk.org" , Bill Hong Subject: Re: [dpdk-dev] [PATCH 6/7] vmxnet3: support RSS and refactor offload X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2015 19:27:27 -0000 SSBiZWxpZXZlIEkgaGF2ZSBBQ0tlZCB2MSBvZiB0aGlzIGNvbW1pdCBidXQgSSBkaWRuJ3Qgc2Vl IEFDS2VkLWJ5IGluIHYyLg0KT3IgaXMgdGhlcmUgYW55IGNoYW5nZXMgZnJvbSB2MT8gIElmIHRo YXTigJlzIHRoZSBjYXNlLCBjYW4geW91IGV4cGxhaW4gdGhlDQpjaGFuZ2VzIGluIHRoZSBjaGFu Z2Vsb2c/DQoNCg0KT24gMi8yNS8xNSwgNjozMiBQTSwgIlN0ZXBoZW4gSGVtbWluZ2VyIiA8c3Rl cGhlbkBuZXR3b3JrcGx1bWJlci5vcmc+DQp3cm90ZToNCg0KPlJlZmFjdG9yIHRoZSBsb2dpYyB0 byBjb21wdXRlIHJlY2VpdmUgb2ZmbG9hZCBmbGFncyB0byBhIHNpbXBsZXINCj5mdW5jdGlvbi4g QW5kIGFkZCBzdXBwb3J0IGZvciBwdXR0aW5nIFJTUyBmbG93IGhhc2ggaW50byBwYWNrZXQuDQo+ DQo+U2lnbmVkLW9mZi1ieTogU3RlcGhlbiBIZW1taW5nZXIgPHN0ZXBoZW5AbmV0d29ya3BsdW1i ZXIub3JnPg0KPlNpZ25lZC1vZmYtYnk6IEJpbGwgSG9uZyA8YmhvbmdAYnJvY2FkZS5jb20+DQo+ LS0tDQo+IGxpYi9saWJydGVfcG1kX3ZteG5ldDMvdm14bmV0M19yeHR4LmMgfCA2OQ0KPisrKysr KysrKysrKysrKysrKysrLS0tLS0tLS0tLS0tLS0tDQo+IDEgZmlsZSBjaGFuZ2VkLCA0MCBpbnNl cnRpb25zKCspLCAyOSBkZWxldGlvbnMoLSkNCj4NCj5kaWZmIC0tZ2l0IGEvbGliL2xpYnJ0ZV9w bWRfdm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