From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from huawei.com (szxga03-in.huawei.com [45.249.212.189]) by dpdk.org (Postfix) with ESMTP id 488891B525 for ; Fri, 30 Nov 2018 06:50:18 +0100 (CET) Received: from dggeml405-hub.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id 55FB0AE1F2C9D; Fri, 30 Nov 2018 13:50:14 +0800 (CST) Received: from DGGEML423-HUB.china.huawei.com (10.1.199.40) by dggeml405-hub.china.huawei.com (10.3.17.49) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 30 Nov 2018 13:50:15 +0800 Received: from DGGEML502-MBS.china.huawei.com ([169.254.3.164]) by dggeml423-hub.china.huawei.com ([10.1.199.40]) with mapi id 14.03.0415.000; Fri, 30 Nov 2018 13:50:14 +0800 From: Linhaifeng To: Chas Williams <3chas3@gmail.com>, "dev@dpdk.org" CC: "chas3@att.com" Thread-Topic: [dpdk-dev] [PATCH] net/bonding: fix double fetch for active_slave_count Thread-Index: AQHUiFyTxT+nkyoAD0a8U0YQpmhixqVnzpiQ Date: Fri, 30 Nov 2018 05:50:13 +0000 Message-ID: <4099DE2E54AFAD489356C6C9161D5333958924EF@DGGEML502-MBS.china.huawei.com> References: <1543469561-8864-1-git-send-email-haifeng.lin@huawei.com> <8fdfaff2-8f59-8d4b-db6c-a8a3c26fb4e2@gmail.com> In-Reply-To: <8fdfaff2-8f59-8d4b-db6c-a8a3c26fb4e2@gmail.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.20.223] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: [dpdk-dev] =?utf-8?b?562U5aSNOiAgW1BBVENIXSBuZXQvYm9uZGluZzogZml4?= =?utf-8?q?_double_fetch_for_active=5Fslave=5Fcount?= 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: Fri, 30 Nov 2018 05:50:18 -0000 SGksIENoYXJzDQoNClRoYW5rIHlvdS4NCg0KIEkgdXNlIGl0IGZvciBzZW5kIHBrdHMgdG8gdGhl IGRlZGljYXRlZCBxdWV1ZSBvZiBzbGF2ZXMuDQoNCk1heWJlIGkgIHNob3VsZCBub3QgdXNlIGl0 LiBJIHdvdWxkIHRob3VnaCBhbm90aGVyIHdheS4NCg0KLS0tLS3pgq7ku7bljp/ku7YtLS0tLQ0K 5Y+R5Lu25Lq6OiBDaGFzIFdpbGxpYW1zIFttYWlsdG86M2NoYXMzQGdtYWlsLmNvbV0gDQrlj5Hp gIHml7bpl7Q6IDIwMTjlubQxMeaciDMw5pelIDExOjI3DQrmlLbku7bkuro6IExpbmhhaWZlbmcg PGhhaWZlbmcubGluQGh1YXdlaS5jb20+OyBkZXZAZHBkay5vcmcNCuaKhOmAgTogY2hhczNAYXR0 LmNvbQ0K5Li76aKYOiBSZTogW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC9ib25kaW5nOiBmaXggZG91 YmxlIGZldGNoIGZvciBhY3RpdmVfc2xhdmVfY291bnQNCg0KSSBndWVzcyB0aGlzIGlzIHNsaWdo dGx5IG1vcmUgY29ycmVjdC4gVGhlcmUgaXMgc3RpbGwgYSByYWNlIGhlcmUgdGhvdWdoLg0KQWZ0 ZXIgeW91IG1ha2UgeW91ciBjb3B5IG9mIGFjdGl2ZV9zbGF2ZV9jb3VudCwgdGhlIG51bWJlciBv ZiBhY3RpdmUgc2xhdmVzIGNvdWxkIGdvIHRvIDAgYW5kIHRoZSBtZW1jcHkoKSB3b3VsZCBjb3B5 IGFuIGludmFsaWQgZWxlbWVudCwgYWNpdHZlX3NsYXZlc1swXS4gIFRoZXJlIGlzIG5vIHNpbXBs ZSBmaXggdG8gdGhpcyBwcm9ibGVtLiAgWW91ciBwYXRjaCByZWR1Y2V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