From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DF525A04C3 for ; Wed, 13 Nov 2019 16:06:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7EE70374; Wed, 13 Nov 2019 16:06:49 +0100 (CET) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by dpdk.org (Postfix) with ESMTP id 8F869271; Wed, 13 Nov 2019 16:06:46 +0100 (CET) X-Originating-IP: 90.177.210.238 Received: from [192.168.1.110] (238.210.broadband10.iol.cz [90.177.210.238]) (Authenticated sender: i.maximets@ovn.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 73F7D1C0009; Wed, 13 Nov 2019 15:06:44 +0000 (UTC) To: Cui LunyuanX , dev@dpdk.org Cc: Wenzhuo Lu , Yang Qiming , stable@dpdk.org, Laurent Hardy , Wei Dai , Ye Xiaolong References: <20191113125555.88840-1-lunyuanx.cui@intel.com> <20191113163441.90162-1-lunyuanx.cui@intel.com> From: Ilya Maximets Message-ID: <5b2db2f5-1d55-94b1-2648-8fe8ca9f7316@ovn.org> Date: Wed, 13 Nov 2019 16:06:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191113163441.90162-1-lunyuanx.cui@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2] net/ixgbe: fix link status X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On 13.11.2019 17:34, Cui LunyuanX wrote: > After ports reset, tx laser register will be reset. The link > status for 82599eb got from link status register was not correct. > Set tx laser disabled after ports reset. > > ixgbe_dev_setup_link_alarm_handler() will set tx laser enabled > when show port information. The purpose of the function has already > implemented in ixgbe_dev_start(). There is no need to reuse it > in ixgbe_dev_link_update_share(). The reason why the alarm handler stays there is the one described in following commit: commit c12d22f65b132c56db7b4fdbfd5ddce27d1e9572 Author: Laurent Hardy Date: Thu Apr 27 17:03:42 2017 +0200 net/ixgbe: ensure link status is updated In case of fiber and link speed set to 1Gb at peer side (with autoneg or with defined speed), link status could be not properly updated at time cable is plugged-in. Indeed if cable was not plugged when device has been configured and started then link status will not be updated properly with new speed as no link setup will be triggered. To avoid this issue, IXGBE_FLAG_NEED_LINK_CONFIG is set to try a link setup each time link_update() is triggered and current link status is down. When cable is plugged-in, link setup will be performed via ixgbe_setup_link(). Signed-off-by: Laurent Hardy Acked-by: Wei Dai Does it fixed? If not, you should not touch the alarm handler or implement a different workaround. Best regards, Ilya Maximets.