From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from huawei.com (szxga08-in.huawei.com [45.249.212.255]) by dpdk.org (Postfix) with ESMTP id 2DBE71B429; Tue, 12 Feb 2019 03:04:52 +0100 (CET) Received: from DGGEMM405-HUB.china.huawei.com (unknown [172.30.72.54]) by Forcepoint Email with ESMTP id 10E306A403788D05A76A; Tue, 12 Feb 2019 10:04:51 +0800 (CST) Received: from DGGEMM421-HUB.china.huawei.com (10.1.198.38) by DGGEMM405-HUB.china.huawei.com (10.3.20.213) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 12 Feb 2019 10:04:50 +0800 Received: from DGGEMM533-MBX.china.huawei.com ([169.254.5.181]) by dggemm421-hub.china.huawei.com ([10.1.198.38]) with mapi id 14.03.0415.000; Tue, 12 Feb 2019 10:04:40 +0800 From: wangyunjian To: Chas Williams <3chas3@gmail.com>, "dev@dpdk.org" CC: "chas3@att.com" , xudingke , "stable@dpdk.org" , "Zhaohui (zhaohui, Polestar)" Thread-Topic: [dpdk-dev] [PATCH] net/bonding: fix slave tx burst for mode 4 Thread-Index: AQHUweAkFshbetypT0yxh7HuOL89cKXaNMMAgAE0z9A= Date: Tue, 12 Feb 2019 02:04:40 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60CA25A87@DGGEMM533-MBX.china.huawei.com> References: <1549872096-16116-1-git-send-email-wangyunjian@huawei.com> <6f80e7f3-6d6c-e2e6-861d-d57795c0289c@gmail.com> In-Reply-To: <6f80e7f3-6d6c-e2e6-861d-d57795c0289c@gmail.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.24.66] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH] net/bonding: fix slave tx burst for mode 4 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: Tue, 12 Feb 2019 02:04:53 -0000 SSBhZ3JlZSB3aXRoIHlvdS4gQ2FuIHlvdSBmaXggaXQ/DQoNClRoYW5rcw0KICAgICAgICBZdW5q aWFuDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQ2hhcyBXaWxsaWFt cyBbbWFpbHRvOjNjaGFzM0BnbWFpbC5jb21dDQo+IFNlbnQ6IE1vbmRheSwgRmVicnVhcnkgMTEs IDIwMTkgMTE6MzUgUE0NCj4gVG86IHdhbmd5dW5qaWFuIDx3YW5neXVuamlhbkBodWF3ZWkuY29t PjsgZGV2QGRwZGsub3JnDQo+IENjOiBjaGFzM0BhdHQuY29tOyB4dWRpbmdrZSA8eHVkaW5na2VA aHVhd2VpLmNvbT47IHN0YWJsZUBkcGRrLm9yZw0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBb UEFUQ0hdIG5ldC9ib25kaW5nOiBmaXggc2xhdmUgdHggYnVyc3QgZm9yIG1vZGUgNA0KPiANCj4g SG93IHN0cmFuZ2UuIEkgd2FzIGp1c3QgbG9va2luZyBhdCB0aGlzIGlzc3VlIHRoaXMgd2Vla2Vu ZC4gSSB0aGluayB3ZSBjYW4ganVzdA0KPiBtb3ZlIHRoZSBjb250cm9sIHBhY2tldCBoYW5kbGlu ZyBiZWZvcmUgdGhlIGRhdGEgcGFja2V0IGhhbmRsaW5nLiBUaGF0DQo+IGF2b2lkcyB0aGUgZ290 byBhbmQgaXMgYSBsaXR0bGUgbW9yZSBzZW5zaWJsZSAtLSB3ZSBzaG91bGQgdHJ5IHRvIHByaW9y aXRpemUNCj4gY29udHJvbCB0cmFmZmljIChldmVuIGlmIHdlIGNhbid0IGd1YXJhbnRlZSB0aGVy ZSB3aWxsIGJlIHNwYWNlIGl0J3MgYmV0dGVyIHRoYW4NCj4gbm90aGluZykuIFNvbWV0aGlu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