patch 'net/netvsc: update link speed when status is unchanged' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Nov 5 17:42:28 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/07/26. 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/a2cf52a882e7bf2ca1e3d5f20ec58e42bde01a18
Thanks.
Luca Boccassi
---
>From a2cf52a882e7bf2ca1e3d5f20ec58e42bde01a18 Mon Sep 17 00:00:00 2001
From: Shrey Khandelwal <s.khandelwal at f5.com>
Date: Tue, 13 Oct 2026 19:07:43 -0700
Subject: [PATCH] net/netvsc: update link speed when status is unchanged
[ upstream commit 1e5abae3e8d6d45a70bda0475365827a7d639f85 ]
hn_dev_link_update() returns without updating the cached link when
the link status has not changed. A speed change alone is never
reported, and if the link is down at port start, the cached speed
and duplex stay zero.
Always update the cached link, and only log when the status changes.
Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device")
Signed-off-by: Shrey Khandelwal <s.khandelwal at f5.com>
---
.mailmap | 1 +
drivers/net/netvsc/hn_ethdev.c | 8 +++-----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/.mailmap b/.mailmap
index 99d1a7c2a59..77c05e69980 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1494,6 +1494,7 @@ Shlomi Gridish <sgridish at marvell.com>
Shougang Wang <shougangx.wang at intel.com>
Shraddha Joshi <jshraddha at vmware.com>
Shreesh Adiga <16567adigashreesh at gmail.com>
+Shrey Khandelwal <s.khandelwal at f5.com>
Shreyansh Jain <shreyansh.jain at nxp.com>
Shrikrishna Khare <skhare at vmware.com>
Shuai Zhu <shuaix.zhu at intel.com>
diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
index f35d6c24368..f4c1265d5ee 100644
--- a/drivers/net/netvsc/hn_ethdev.c
+++ b/drivers/net/netvsc/hn_ethdev.c
@@ -280,11 +280,9 @@ hn_dev_link_update(struct rte_eth_dev *dev,
else
link.link_status = RTE_ETH_LINK_DOWN;
- if (old.link_status == link.link_status)
- return 0;
-
- PMD_INIT_LOG(DEBUG, "Port %d is %s", dev->data->port_id,
- (link.link_status == RTE_ETH_LINK_UP) ? "up" : "down");
+ if (old.link_status != link.link_status)
+ PMD_INIT_LOG(DEBUG, "Port %d is %s", dev->data->port_id,
+ (link.link_status == RTE_ETH_LINK_UP) ? "up" : "down");
return rte_eth_linkstatus_set(dev, &link);
}
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-05 16:42:47.323233460 +0000
+++ 0061-net-netvsc-update-link-speed-when-status-is-unchange.patch 2026-11-05 16:42:44.989062818 +0000
@@ -1 +1 @@
-From 1e5abae3e8d6d45a70bda0475365827a7d639f85 Mon Sep 17 00:00:00 2001
+From a2cf52a882e7bf2ca1e3d5f20ec58e42bde01a18 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1e5abae3e8d6d45a70bda0475365827a7d639f85 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 492bb56acb..53fd519df1 100644
+index 99d1a7c2a59..77c05e69980 100644
@@ -26 +27 @@
-@@ -1576,6 +1576,7 @@ Shlomi Gridish <sgridish at marvell.com>
+@@ -1494,6 +1494,7 @@ Shlomi Gridish <sgridish at marvell.com>
@@ -33 +34 @@
- Shu Shen <shu.shen at radisys.com>
+ Shuai Zhu <shuaix.zhu at intel.com>
@@ -35 +36 @@
-index e4fdf89873..5dc91f9503 100644
+index f35d6c24368..f4c1265d5ee 100644
@@ -38 +39 @@
-@@ -298,11 +298,9 @@ hn_dev_link_update(struct rte_eth_dev *dev,
+@@ -280,11 +280,9 @@ hn_dev_link_update(struct rte_eth_dev *dev,
More information about the stable
mailing list