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 53AD2A0553 for ; Mon, 17 Feb 2020 18:46:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4A7071DAB4; Mon, 17 Feb 2020 18:46:29 +0100 (CET) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id AB4C81DABA for ; Mon, 17 Feb 2020 18:46:27 +0100 (CET) Received: by mail-wr1-f66.google.com with SMTP id y17so20779738wrh.5 for ; Mon, 17 Feb 2020 09:46:27 -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=PMCiEmjzZGzZtX4cXRRMBxFbXjOUZFH34AMVu3yWUwo=; b=dHb6hI62F3Hcx36/H+ANdQ2iT+xnA8pbXGGCgQL68BKf2I2PJN99eSauP5TtEC1EVW Kh3tT4rPdZN8u9VqVpUL7sa9WWffzxF6A2ACKoKesxnqlmSN5RRXDAsJ1PH6ERMinBhz cMxuj+5XpRyv8RpnClNWxgB2c7/YlW8kr/XrFMQFaZkTXIv0p0KC6q24JxYGxHzcYC/T xx6Q9oC1ihDnfyOcfI/bXWg9Ma5YiiWkRBluyJTAh0DLWYnY1mrh/u73q1K3dVLeuNGZ fIhsNh8QTadPQ8GcOpkXP0iT93Ks1lICh8MOQR5WjANk9/t3ra6LcQqyovg+RP0SSrfg mJag== 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=PMCiEmjzZGzZtX4cXRRMBxFbXjOUZFH34AMVu3yWUwo=; b=N67XXmjjRPxuDw/ghJvCSWix0m3w6nvwPk2PzhVTpOUXgQhmqIttabPz5OZIEDyBm7 T7St7uaWtYQv1/gnp4bi9AsgrTtQ2mxkO+8PlWI7xIhjR9L6ZKKNbTim1ihe5jgUxilU q/jo5VVslaiIMAhXE/WTONNN7Yp4DMs6XvclXYUGhVFSSxjNTO1JxiAo0NWVD1PaU7/T DGkINrCoAMt4VgnKdqyMtUWIAXn0VxVb6xP1U9CXcahijhJ4n6oKCObikts+2mAFr+Lq 8L2baRnoVuvU1g4uI9yw6P7H8xQr9hh1V96WjmbgOQYD/6mb6RQw2HtSNqG6YTeekQMT impA== X-Gm-Message-State: APjAAAU1iCjJjVrPr/70rvJBRH8SGXkRT3fr8SM5ptaxq4cNGnx04hDJ wLqPzidfov3FwBvDw9SI4zNdVXsoHg7+Xw== X-Google-Smtp-Source: APXvYqwktfqVpNr4MEwrs1QCH6n6TarfbTRnIcEiCyebAXfBSbWPJVY05ilKoQADWcJncLbo/9nbwA== X-Received: by 2002:adf:f1d0:: with SMTP id z16mr22760534wro.209.1581961587450; Mon, 17 Feb 2020 09:46:27 -0800 (PST) Received: from localhost (userh634.uk.uudial.com. [194.69.103.7]) by smtp.gmail.com with ESMTPSA id s65sm165409wmf.48.2020.02.17.09.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 09:46:26 -0800 (PST) From: luca.boccassi@gmail.com To: Stephen Hemminger Cc: Mohammed Gamal , dpdk stable Date: Mon, 17 Feb 2020 17:45:15 +0000 Message-Id: <20200217174546.25334-23-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200217174546.25334-1-luca.boccassi@gmail.com> References: <20200211112216.3929-190-luca.boccassi@gmail.com> <20200217174546.25334-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/netvsc: initialize link state' has been queued to stable release 19.11.1 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" Hi, FYI, your patch has been queued to stable release 19.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/19/20. 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. Thanks. Luca Boccassi --- >From 9aa8b8db6e7c15b9056d324019176179db7bc166 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 7 Feb 2020 10:08:16 -0800 Subject: [PATCH] net/netvsc: initialize link state [ upstream commit 047ad3787a2f5d99277e0d8d756580a1d5ea2891 ] If application is using link state interrupt, the correct link state needs to be filled in when device is started. This is similar to how virtio updates link information. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Reported-by: Mohammed Gamal Signed-off-by: Stephen Hemminger Tested-by: Mohammed Gamal --- drivers/net/netvsc/hn_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c index c79f924379..564620748d 100644 --- a/drivers/net/netvsc/hn_ethdev.c +++ b/drivers/net/netvsc/hn_ethdev.c @@ -823,6 +823,10 @@ hn_dev_start(struct rte_eth_dev *dev) if (error) hn_rndis_set_rxfilter(hv, 0); + /* Initialize Link state */ + if (error == 0) + hn_dev_link_update(dev, 0); + return error; } -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-17 17:00:15.963479684 +0000 +++ 0023-net-netvsc-initialize-link-state.patch 2020-02-17 17:00:15.311950512 +0000 @@ -1,14 +1,15 @@ -From 047ad3787a2f5d99277e0d8d756580a1d5ea2891 Mon Sep 17 00:00:00 2001 +From 9aa8b8db6e7c15b9056d324019176179db7bc166 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 7 Feb 2020 10:08:16 -0800 Subject: [PATCH] net/netvsc: initialize link state +[ upstream commit 047ad3787a2f5d99277e0d8d756580a1d5ea2891 ] + If application is using link state interrupt, the correct link state needs to be filled in when device is started. This is similar to how virtio updates link information. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") -Cc: stable@dpdk.org Reported-by: Mohammed Gamal Signed-off-by: Stephen Hemminger