From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BB399A0032; Wed, 20 Jul 2022 08:39:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 957F940697; Wed, 20 Jul 2022 08:39:49 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 23CEF4003C; Wed, 20 Jul 2022 08:39:47 +0200 (CEST) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LnmGz2G2JzlVm0; Wed, 20 Jul 2022 14:38:03 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 20 Jul 2022 14:39:45 +0800 Received: from kwepemi500012.china.huawei.com (7.221.188.12) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 20 Jul 2022 14:39:45 +0800 Received: from kwepemi500012.china.huawei.com ([7.221.188.12]) by kwepemi500012.china.huawei.com ([7.221.188.12]) with mapi id 15.01.2375.024; Wed, 20 Jul 2022 14:39:44 +0800 From: "humin (Q)" To: wangyunjian , "dev@dpdk.org" CC: "chas3@att.com" , Huangshaozhang , "stable@dpdk.org" Subject: =?gb2312?B?tPC4tDogW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC9ib25kaW5nOiBmaXggZG91?= =?gb2312?Q?ble_get_slave_link_status?= Thread-Topic: [dpdk-dev] [PATCH] net/bonding: fix double get slave link status Thread-Index: AQHYlqlOk/0ozG+kYEWFmTLJ7jR46a2G2YFA Date: Wed, 20 Jul 2022 06:39:44 +0000 Message-ID: <781607bf0fe0426f9d5882a7b88ccd13@huawei.com> References: <598d08fa7e4da0ba42ba21ed3461ead4f6f9d23f.1657710002.git.wangyunjian@huawei.com> In-Reply-To: <598d08fa7e4da0ba42ba21ed3461ead4f6f9d23f.1657710002.git.wangyunjian@huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.78.23.197] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org QWNrZWQtYnk6IE1pbiBIdSAoQ29ubm9yKSA8aHVtaW4yOUBodWF3ZWkuY29tPg0KDQotLS0tLdPK vP7Urbz+LS0tLS0NCreivP7Iyzogd2FuZ3l1bmppYW4gPHdhbmd5dW5qaWFuQGh1YXdlaS5jb20+ IA0Kt6LLzcqxvOQ6IDIwMjLE6jfUwjEzyNUgMTk6MTENCsrVvP7IyzogZGV2QGRwZGsub3JnDQqz rcvNOiBjaGFzM0BhdHQuY29tOyBodW1pbiAoUSkgPGh1bWluMjlAaHVhd2VpLmNvbT47IEh1YW5n c2hhb3poYW5nIDxodWFuZ3NoYW96aGFuZ0BodWF3ZWkuY29tPjsgd2FuZ3l1bmppYW4gPHdhbmd5 dW5qaWFuQGh1YXdlaS5jb20+OyBzdGFibGVAZHBkay5vcmcNCtb3zOI6IFtkcGRrLWRldl0gW1BB VENIXSBuZXQvYm9uZGluZzogZml4IGRvdWJsZSBnZXQgc2xhdmUgbGluayBzdGF0dXMNCg0KV2hl biBsaW5rIHN0YXR1cyBwb2xsaW5nIG1vZGUgaXMgdXNpbmcsIHRoZSBzbGF2ZSBsaW5rIHN0YXR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