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 5D73FA052A; Tue, 2 Feb 2021 13:13:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C3B8240272; Tue, 2 Feb 2021 13:13:07 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 3FB18240270 for ; Tue, 2 Feb 2021 13:13:06 +0100 (CET) IronPort-SDR: fi70E5MLxtBXt1nhYVpQ7gKYLIrOblg5320iaiygm+bTqir1vOIRrsdjaB2ILGoKRaggVg9swM +oFj/XkwYZlQ== X-IronPort-AV: E=McAfee;i="6000,8403,9882"; a="265674969" X-IronPort-AV: E=Sophos;i="5.79,394,1602572400"; d="scan'208";a="265674969" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2021 04:13:01 -0800 IronPort-SDR: zOaUGyABEiOYFbxPxdvLY++9nZZXpAfRx0291XeHRdwhTX8eSDrDSDoeKiEHsrVDWqYwrVn/6I uKO0aVKi/ZtQ== X-IronPort-AV: E=Sophos;i="5.79,394,1602572400"; d="scan'208";a="391440166" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.226.112]) ([10.213.226.112]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2021 04:13:00 -0800 To: Lijun Ou , thomas@monjalon.net Cc: dev@dpdk.org, linuxarm@openeuler.org References: <1611310732-51975-1-git-send-email-oulijun@huawei.com> <1611310732-51975-15-git-send-email-oulijun@huawei.com> From: Ferruh Yigit Message-ID: Date: Tue, 2 Feb 2021 12:12:56 +0000 MIME-Version: 1.0 In-Reply-To: <1611310732-51975-15-git-send-email-oulijun@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 14/14] net/hns3: support LSC event report 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 Sender: "dev" On 1/22/2021 10:18 AM, Lijun Ou wrote: > From: Chengwen Feng > > This patch support LSC(Link Status Change) event report. > > Signed-off-by: Chengwen Feng > Signed-off-by: Lijun Ou <...> > @@ -2373,8 +2408,11 @@ hns3vf_stop_service(struct hns3_adapter *hns) > struct rte_eth_dev *eth_dev; > > eth_dev = &rte_eth_devices[hw->data->port_id]; > - if (hw->adapter_state == HNS3_NIC_STARTED) > + if (hw->adapter_state == HNS3_NIC_STARTED) { > rte_eal_alarm_cancel(hns3vf_service_handler, eth_dev); > + hns3vf_update_link_status(hw, ETH_LINK_DOWN, hw->mac.link_speed, > + hw->mac.link_duplex); indentation fixed while merging. Applied to dpdk-next-net/main, thanks.