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 68937A0524 for ; Fri, 5 Feb 2021 12:34:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 62D4540682; Fri, 5 Feb 2021 12:34:09 +0100 (CET) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mails.dpdk.org (Postfix) with ESMTP id 88238188A12 for ; Fri, 5 Feb 2021 12:34:07 +0100 (CET) Received: by mail-wm1-f45.google.com with SMTP id t142so3582190wmt.1 for ; Fri, 05 Feb 2021 03:34:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PvbE6vkFbLaDmKGb2YvnjsFmb6vSGJK2M2TLJCJGVLA=; b=RmdT8nNS5UBLTNcT1kUkTW4rm0H8sfqHnRPaPLDHjgPjkDJmS34o2R2xLL3ZSrbUvh b/ncjcvrIxsj2MfTpuQBTsDEs2KEaCaxPziBM7AgFQsM4zLsQDtKNwRtbLZwwoM+DN37 qQyXYiUI04rKwl6g/hn2KpyWRG8OTVUzpRo7Y+2xxLV4LperrT1cFAztUGrvYrFintTP qF/Nj9ORCueVBxwskIftzjCk5IZf6pOS2gJ4mHj8IS6jMDLNW/wiHuDLxdZol8MFHQMe +6tSQmuUbzTJ1pKF1IMZFC4gHyk0+AOumeoegBl3cgBQTh3tkVAMx+RiIEF4k9+zPkcj 2YYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PvbE6vkFbLaDmKGb2YvnjsFmb6vSGJK2M2TLJCJGVLA=; b=tav2SfT5DtMqTJtyQayS0GjtTW38/hHicyz53U/TOSYnzDfJI6LKDGUtXWhogBOqWD 08MMKHNWKDKRf8naOg4VAT6DNceCB/zsXqqHDPU85YPuLj5TBe6B1bJYysLdbLZMicBH LxlwIbpKSk3TkFNEhZdu8KWoOYVI8ZHXe9KLVCgOmSuryGe2pwP7jJ6KSLOmAdMeyd8C NMkYTifGuuzHO4WsedL7xw8BH5SjwGC4jC12Y+7w9YpsmA+5fJyDZnqkkjl6DBGjSUyO CTOQ/8EzR3oEW+D7r7maoV4/VdKEelJz19Y+7HGs2y/TgS6Y1VRbZN9Q1tmf3MQVuOHa yFBg== X-Gm-Message-State: AOAM532D6MPy0wQvOrML/qqbc+gA7LDPSZV1Wb3HerQ9smeg3InSPsqH ofT3VcOcaYRVbaZe8+7q9Q4= X-Google-Smtp-Source: ABdhPJz1raZlpYIjlo5LahfsSGrjTuYulMbsENe1fmsCKnSWJXR/joTNGBFQt23eT8QmNTRrVQyL3w== X-Received: by 2002:a7b:c5d6:: with SMTP id n22mr3171938wmk.70.1612524847264; Fri, 05 Feb 2021 03:34:07 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id l1sm11997373wrp.40.2021.02.05.03.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 03:34:06 -0800 (PST) From: luca.boccassi@gmail.com To: Chengwen Feng Cc: Lijun Ou , dpdk stable Date: Fri, 5 Feb 2021 11:17:35 +0000 Message-Id: <20210205111920.1272063-169-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210205111920.1272063-1-luca.boccassi@gmail.com> References: <20210205111920.1272063-1-luca.boccassi@gmail.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 20.11.1 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 20.11.1 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/07/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/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/c74bd44eeadf71292eb012e8da79e0dfa32e45e4 Thanks. Luca Boccassi --- >From c74bd44eeadf71292eb012e8da79e0dfa32e45e4 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 d47af417bf..32e35dc463 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b/drivers/net/hns3/hns3_ethdev_vf.c @@ -1749,7 +1749,6 @@ hns3vf_init_hardware(struct hns3_adapter *hns) goto err_init_hardware; } - hns3vf_request_link_info(hw); return 0; err_init_hardware: @@ -2238,7 +2237,7 @@ hns3vf_dev_start(struct rte_eth_dev *dev) hns3_rx_scattered_calc(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.29.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-02-05 11:18:36.827085308 +0000 +++ 0169-net-hns3-fix-VF-query-link-status-in-dev-init.patch 2021-02-05 11:18:29.126697205 +0000 @@ -1 +1 @@ -From de63cf0d90a05edf911b2c7013d2651f5f6a92eb Mon Sep 17 00:00:00 2001 +From c74bd44eeadf71292eb012e8da79e0dfa32e45e4 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 d47af417bf..32e35dc463 100644