[dpdk-stable] patch 'net/netvsc: initialize link state' has been queued to stable release 19.11.1

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Feb 17 18:45:15 CET 2020


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 <stephen at networkplumber.org>
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 <mgamal at redhat.com>
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Tested-by: Mohammed Gamal <mgamal at redhat.com>
---
 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 <stephen at networkplumber.org>
 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 at dpdk.org
 
 Reported-by: Mohammed Gamal <mgamal at redhat.com>
 Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>


More information about the stable mailing list