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 12BA52A5F for ; Tue, 22 Dec 2015 22:36:18 +0100 (CET) Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 9DD9928E38; Tue, 22 Dec 2015 13:36:15 -0800 (PST) Received: from EX13-CAS-012.vmware.com (ex13-cas-012.vmware.com [10.113.191.64]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 6A8634041D; Tue, 22 Dec 2015 13:36:16 -0800 (PST) Received: from EX13-MBX-026.vmware.com (10.113.191.46) by EX13-MBX-025.vmware.com (10.113.191.45) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Tue, 22 Dec 2015 13:36:16 -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; Tue, 22 Dec 2015 13:36:16 -0800 From: Yong Wang To: Marco Lee , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] The VMXNET3 PMD can't receive packet suddenly after a lot of traffic coming in Thread-Index: AQHRPQDJI9CNbEMHiUG7RDCbOD/NEA== Date: Tue, 22 Dec 2015 21:36:15 +0000 Message-ID: <4CEC0AA2-7157-442A-A969-69D184CE8B8B@vmware.com> References: <1437699218-8783-1-git-send-email-mac_leehk@yahoo.com.hk> In-Reply-To: <1437699218-8783-1-git-send-email-mac_leehk@yahoo.com.hk> 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: <094ED558F0150F40BEA51CB10361B886@pa-exch1.vmware.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] The VMXNET3 PMD can't receive packet suddenly after a lot of traffic coming in 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: Tue, 22 Dec 2015 21:36:18 -0000 T24gNy8yMy8xNSwgNTo1MyBQTSwgImRldiBvbiBiZWhhbGYgb2YgTWFyY28gTGVlIiA8ZGV2LWJv dW5jZXNAZHBkay5vcmcgb24gYmVoYWxmIG9mIG1hY19sZWVoa0B5YWhvby5jb20uaGs+IHdyb3Rl Og0KDQoNCj5UaGUgUlggb2YgVk1YTkVUMyBQTUQgd2lsbCBoYXZlIGRlYWRsb2NrIHdoZW4gYSBs b3Qgb2YgdHJhZmZpYyBjb21pbmcgaW4uDQo+VGhlIHJvb3QgY2F1c2UgaXMgZHVlIHRvIG1idWYg YWxsb2NhdGlvbiBmYWlsIGluIHZteG5ldDNfcG9zdF9yeF9idWZzKCkNCj5hbmQgdGhlcmUgaXMg bm8gZXJyb3IgaGFuZGxpbmcgd2hlbiBpdCBpcyBjYWxsZWQgZnJvbSB2bXhuZXQzX3JlY3ZfcGt0 cygpLg0KPlRoZSBSWEQgd2lsbCBub3QgaGF2ZSAiZnJlZSIgbWJ1ZiBmb3IgaXQgYnV0IHRoZSBj b3VudGVyIHN0aWxsIGluY3JlbWVudC4NCg0KQ2FuIHlvdSBkZXNjcmliZSB3aGF0IGNvdW50ZXIg dGhpcyByZWZlcnMgdG8/DQoNCj5GaW5hbGx5LCBubyBwYWNrZXQgY2FuIGJlIHJlY2VpdmVkLg0K Pg0KPlRoaXMgZml4IGlzIGFsbG9jYXRlIHRoZSBtYnVmIGZpcnN0LCBpZiB0aGUgYWxsb2NhdGlv biBpcyBmYWlsZWQsDQo+dGhlbiByZXVzZSB0aGUgb2xkIG1idWYuIElmIHRoZSBhbGxvY2F0aW9u IGlzIHN1Y2Nlc3MsDQo+dGhlIHZ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