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 CF915A0524 for ; Thu, 4 Feb 2021 12:36:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B23E3240736; Thu, 4 Feb 2021 12:36:25 +0100 (CET) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by mails.dpdk.org (Postfix) with ESMTP id 7BB94240733 for ; Thu, 4 Feb 2021 12:36:24 +0100 (CET) Received: from 2.general.paelzer.uk.vpn ([10.172.196.173] helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1l7cvw-0005U5-9h; Thu, 04 Feb 2021 11:36:24 +0000 From: Christian Ehrhardt To: Chengwen Feng Cc: Lijun Ou , dpdk stable Date: Thu, 4 Feb 2021 12:28:47 +0100 Message-Id: <20210204112954.2488123-72-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210204112954.2488123-1-christian.ehrhardt@canonical.com> References: <20210204112954.2488123-1-christian.ehrhardt@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/hns3: fix VF query link status in dev init' has been queued to stable release 19.11.7 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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" Hi, FYI, your patch has been queued to stable release 19.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/06/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/cpaelzer/dpdk-stable-queue This queued commit can be viewed at: https://github.com/cpaelzer/dpdk-stable-queue/commit/fd45963eea28aad9fce2954754f491e8873d99a3 Thanks. Christian Ehrhardt --- >From fd45963eea28aad9fce2954754f491e8873d99a3 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Thu, 14 Jan 2021 21:33:32 +0800 Subject: [PATCH] net/hns3: fix VF query link status in dev init [ upstream commit de63cf0d90a05edf911b2c7013d2651f5f6a92eb ] Current hns3vf queried link status in dev init stage, but the link status should be maintained in dev start stage, this patch fix this. Also, in the dev start stage, we use quick query instead of delayed query to make sure update the link status soon. Fixes: a5475d61fa34 ("net/hns3: support VF") Fixes: 958edf6627d5 ("net/hns3: fix VF link status") Signed-off-by: Chengwen Feng Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev_vf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index f392b62474..d8a2a8dcf3 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b/drivers/net/hns3/hns3_ethdev_vf.c @@ -1439,7 +1439,6 @@ hns3vf_init_hardware(struct hns3_adapter *hns) goto err_init_hardware; } - hns3vf_request_link_info(hw); return 0; err_init_hardware: @@ -1848,7 +1847,7 @@ hns3vf_dev_start(struct rte_eth_dev *dev) hns3_set_rxtx_function(dev); hns3_mp_req_start_rxtx(dev); - rte_eal_alarm_set(HNS3VF_SERVICE_INTERVAL, hns3vf_service_handler, dev); + hns3vf_service_handler(dev); hns3vf_restore_filter(dev); -- 2.30.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-02-04 12:04:31.093305665 +0100 +++ 0072-net-hns3-fix-VF-query-link-status-in-dev-init.patch 2021-02-04 12:04:28.070789767 +0100 @@ -1 +1 @@ -From de63cf0d90a05edf911b2c7013d2651f5f6a92eb Mon Sep 17 00:00:00 2001 +From fd45963eea28aad9fce2954754f491e8873d99a3 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit de63cf0d90a05edf911b2c7013d2651f5f6a92eb ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -23 +24 @@ -index c126384ae7..ee895059d7 100644 +index f392b62474..d8a2a8dcf3 100644 @@ -26 +27 @@ -@@ -1749,7 +1749,6 @@ hns3vf_init_hardware(struct hns3_adapter *hns) +@@ -1439,7 +1439,6 @@ hns3vf_init_hardware(struct hns3_adapter *hns) @@ -34,2 +35,2 @@ -@@ -2238,7 +2237,7 @@ hns3vf_dev_start(struct rte_eth_dev *dev) - hns3_rx_scattered_calc(dev); +@@ -1848,7 +1847,7 @@ hns3vf_dev_start(struct rte_eth_dev *dev) +