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 8FE7DA054A; Thu, 25 Aug 2022 19:05:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3912840223; Thu, 25 Aug 2022 19:05:54 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2085.outbound.protection.outlook.com [40.107.94.85]) by mails.dpdk.org (Postfix) with ESMTP id 13AB040156; Thu, 25 Aug 2022 19:05:51 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oXhVUcStIKY2HrC4w0FmfR9KW6cqu9sCixo2akjfq8IQavnyS76None5q52ouvJkoyaDvv7eifsKx3HLcC+12/otC5S+4o86HEDpcueygLHIG/r7pl/DqyKesjyH5UQlVrStNLEeEubohJnZF5w5tkycB5ZKTLQSdnkqYs4in6c3f8lY3zJFZVn+3KQQjeIar5Jthm4qswK94LGLuoXzQylnXRJj+/rxh0puj50k+svDRBbXg1QFUAh35HGNej8EEObQvWWL6x0/GyE6yGN+c/1sS6AdYp0omVoltl4i42uVb+PvdTbT7Zr/sKkKEC1hOnB6tVF0w4s+yZenpQfjKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VIk/n8wxjH5U/PByvv9ohBCV74549v2sEDmvtIXN75E=; b=VFX0iXaLFkJwEUWrMrYUMzMzG3CDm7u4uuurUO33ynWo0XYzYQhQmytZUPvZIASAeAn/l6cCPAcu13iSbvsnlQPIB4ewQ3HLKhAPvRsst6Uzth0Q9U4l5aJ5kPF/ZjDZFPJGT14CJ9bJVG5T626VB30sCwUl0oy97pGLXD364bbjxmalhCq+3rDnfUQ8PAa2N/P0a+OEwfWQ7owaXxT/IOkGq3yQCUiOK6skmWBTuR5f1Lx2G5IEpeiysVmYZgGtqqmgCUrEBG37I9YB66aRaLGmyh6aOvjtvcyn9yXuQwuqOXGLwIs91rb3LbJBZK0flL0nV2eU0ebKG6gF9OjtTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=huawei.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VIk/n8wxjH5U/PByvv9ohBCV74549v2sEDmvtIXN75E=; b=mJaHJbWqsWY15sb2EeGdm/GNpOe/RL2JPrXe2wdKUVf37sjXUp7r0ZcVN2CaAK/C0+P67EwxnpKAUznBplX+fEtRpJaZMhjKgu+kr1nasNCDeCOsb1Sn3gvFExOdObDwzNhX+Bv09QqjnisfUlBhSqU6JJ5Wjl/mmfGG6uBWLl0= Received: from BN0PR04CA0162.namprd04.prod.outlook.com (2603:10b6:408:eb::17) by CO6PR02MB8835.namprd02.prod.outlook.com (2603:10b6:303:146::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.16; Thu, 25 Aug 2022 17:05:48 +0000 Received: from BN1NAM02FT058.eop-nam02.prod.protection.outlook.com (2603:10b6:408:eb:cafe::c1) by BN0PR04CA0162.outlook.office365.com (2603:10b6:408:eb::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15 via Frontend Transport; Thu, 25 Aug 2022 17:05:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.80.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.80.198; helo=xir-pvapexch02.xlnx.xilinx.com; pr=C Received: from xir-pvapexch02.xlnx.xilinx.com (149.199.80.198) by BN1NAM02FT058.mail.protection.outlook.com (10.13.2.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5566.15 via Frontend Transport; Thu, 25 Aug 2022 17:05:47 +0000 Received: from xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) by xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 25 Aug 2022 18:05:46 +0100 Received: from smtp.xilinx.com (172.21.105.197) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 25 Aug 2022 18:05:46 +0100 Envelope-to: humin29@huawei.com, wangyunjian@huawei.com, dev@dpdk.org, chas3@att.com, huangshaozhang@huawei.com, stable@dpdk.org Received: from [10.71.194.74] (port=31321) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oRGIc-00067e-EJ; Thu, 25 Aug 2022 18:05:46 +0100 Message-ID: <7227c244-b85a-b333-95a2-87522368d070@xilinx.com> Date: Thu, 25 Aug 2022 18:05:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: =?UTF-8?B?UmU6IOetlOWkjTogW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC9ib25kaW5n?= =?UTF-8?Q?=3a_fix_double_get_slave_link_status?= Content-Language: en-US To: "humin (Q)" , wangyunjian , "dev@dpdk.org" CC: "chas3@att.com" , Huangshaozhang , "stable@dpdk.org" References: <598d08fa7e4da0ba42ba21ed3461ead4f6f9d23f.1657710002.git.wangyunjian@huawei.com> <781607bf0fe0426f9d5882a7b88ccd13@huawei.com> From: Ferruh Yigit In-Reply-To: <781607bf0fe0426f9d5882a7b88ccd13@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d218989-31b5-4786-ce36-08da86bc0e23 X-MS-TrafficTypeDiagnostic: CO6PR02MB8835:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XpUYKl9JBLYLdt/cxgGZl8LGJehS191AvHZhZ3DXQPm8smN31KHdUXRrExCrv0vcaoROsltgFEhJf1titIHiWorP+BEeek8Lyf8U/rSf86M95R2t9l2Lt0SXLrsyyT3zkopbDdjnlAKflHuWIGQ/pQVAhJNKVURxa6m6kfYgRGxkvWhZuSrzgJ8S8XIsFNSyGswBpbZjbaPfnsInA3SD73OfLLKkS8l8J61YO+FTL1OCmJYVdhHxdCywvIzNX6lutSllZ6dAnKNbE1vQ8EjYqhnjZTr+Ib86k0+sOkWOVV9CFIB9CmnJD/yY/Rg5rWOxWapyqjJpemqrrga4koElyDxa0GltGQnElKixnapNg33ZuN8NHazvDzu0rDHUKavTuV+tK6dnyuPtkfgQsoAvVlnBUDWJHOydWBt/ZxXAAh3FbdKLthcMVxdioKejcyrrSHmE641uL2EV8YHBymxuV/apRlvUWb06HYcM2y1WBw9Z2OKTwn0rlk6vr0lgtz9VmBE04tHjyNUY/uRswq2hO2qXFnfcmQj4q+iWHbqSqDo7H2+JGNeHBOpOqLEfogY08T8F+k8J/u5ggbX5h0XIADHMr/Gs8TjsSFUSx0/IrsuG9vrDEZarEaQg1eLgBUOoscHOjVb9ZklHZvnZMCKCyOuiskDt1cPWDsYPoWqHY4rNinjO89b3lhhaoKyh4HbaqiufCDLaVmDV9i8j7cDk77F5WVXW1Q8h9l5w9daql0BCdnTeN0N0FfKI8tigmOy+r1SH2bTloiLh1hOac1TqxlPLB/YtzrttZUWC8nkH3hpLddTH0zPo+z7aJyjgq9p9 X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch02.xlnx.xilinx.com; PTR:unknown-80-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(376002)(396003)(136003)(346002)(39860400002)(36840700001)(40470700004)(46966006)(356005)(31686004)(2906002)(2616005)(186003)(426003)(26005)(47076005)(41300700001)(8936002)(478600001)(5660300002)(336012)(9786002)(70206006)(70586007)(44832011)(31696002)(4326008)(82310400005)(224303003)(7636003)(36756003)(40480700001)(40460700003)(36860700001)(4744005)(316002)(53546011)(54906003)(110136005)(82740400003)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2022 17:05:47.3829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5d218989-31b5-4786-ce36-08da86bc0e23 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT058.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR02MB8835 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 On 7/20/2022 7:39 AM, humin (Q) wrote: > -----邮件原件----- > 发件人: wangyunjian > 发送时间: 2022年7月13日 19:11 > 收件人: dev@dpdk.org > 抄送: chas3@att.com; humin (Q) ; Huangshaozhang ; wangyunjian ; stable@dpdk.org > 主题: [dpdk-dev] [PATCH] net/bonding: fix double get slave link status > > When link status polling mode is using, the slave link status is queried twice, which may be inconsistent. To fix this, we can keep the lastest queried link state. > > Fixes: a45b288ef21a ("bond: support link status polling") > Cc: stable@dpdk.org > > Signed-off-by: Yunjian Wang > > Acked-by: Min Hu (Connor) > Applied to dpdk-next-net/main, thanks.