From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-outbound-2.vmware.com (smtp-outbound-2.vmware.com [208.91.2.13]) by dpdk.org (Postfix) with ESMTP id C22E15A4D for ; Wed, 9 Dec 2015 21:38:22 +0100 (CET) Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 29D9828A53; Wed, 9 Dec 2015 12:38:20 -0800 (PST) Received: from EX13-CAS-005.vmware.com (ex13-cas-005.vmware.com [10.113.191.55]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 1386EB0374; Wed, 9 Dec 2015 12:38:21 -0800 (PST) Received: from EX13-MBX-026.vmware.com (10.113.191.46) by EX13-MBX-022.vmware.com (10.113.191.42) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Wed, 9 Dec 2015 12:38:20 -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.1076.010; Wed, 9 Dec 2015 12:38:20 -0800 From: Yong Wang To: Stephen Hemminger Thread-Topic: [PATCH 3/3] vmxnet3: fix vlan_offload_set Thread-Index: AQHRLi/OLQvW4tOM302crvHC/zYnr57DJrOA Date: Wed, 9 Dec 2015 20:38:19 +0000 Message-ID: <8A29F787-C54E-4275-B1E3-C634BE9F45BF@vmware.com> References: <1449191107-14222-1-git-send-email-stephen@networkplumber.org> <1449191107-14222-4-git-send-email-stephen@networkplumber.org> In-Reply-To: <1449191107-14222-4-git-send-email-stephen@networkplumber.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.113.170.11] Content-Type: text/plain; charset="utf-8" Content-ID: <3140FDA5FCF36E429E0D2A2236E2EF16@pa-exch1.vmware.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "dev@dpdk.org" , Nachiketa Prachanda Subject: Re: [dpdk-dev] [PATCH 3/3] vmxnet3: fix vlan_offload_set 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: Wed, 09 Dec 2015 20:38:23 -0000 T24gMTIvMy8xNSwgNTowNSBQTSwgIlN0ZXBoZW4gSGVtbWluZ2VyIiA8c3RlcGhlbkBuZXR3b3Jr cGx1bWJlci5vcmc+IHdyb3RlOg0KDQoNCj5Gcm9tOiBOYWNoaWtldGEgUHJhY2hhbmRhIDxucHJh Y2hhbkBicm9jYWRlLmNvbT4NCj4NCj52bXhuZXQzX2Rldl92bGFuX29mZmxvYWRfc2V0KGRldiwg bWFzaykgd2FzIGluY29ycmVjdGx5IHRyZWF0aW5nIHRoZQ0KPm1hc2sgcGFyYW1ldGVyIGFzIHRo ZSBiaXRtYXNrIGZvciB2bGFuX3N0cmlwIGFuZCB2bGFuX2ZpbHRlciwgd2hlcmVhcw0KPnRoZSBt YXNrIGluZGljYXRlcyBvbmx5IHdoYXQgaGFzIGNoYW5nZWQgLSB0aGUgdmFsdWVzIGZvcg0KPnZs YW5fc3RyaXBwaW5nIGFuZCB2bGFuX2ZpbHRlciBuZWVkcyB0byBiZSB0YWtlbiBmcm9tIGRldl9j b25mLnJ4bW9kZS4NCj4NCj5TaWduZWQtb2ZmLWJ5OiBOYWNoaWtldGEgUHJhY2hhbmRhIDxucHJh Y2hhbkBicm9jYWRlLmNvbT4NCj5TaWduZWQtb2ZmLWJ5OiBTdGVwaGVuIEhlbW1pbmdlciA8c3Rl cGhlbkBuZXR3b3JrcGx1bWJlci5vcmc+DQo+LS0tDQo+IGRyaXZlcnMvbmV0L3ZteG5ldDMvdm14 bmV0M19ldGhkZXYuYyB8IDQ1ICsrKysrKysrKysrKysrKysrKysrKystLS0tLS0tLS0tLS0tLQ0K PiAxIGZpbGUgY2hhbmdlZ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