patch 'net/ngbe: reconfigure MAC Rx when link update' has been queued to stable release 21.11.6

Kevin Traynor ktraynor at redhat.com
Thu Nov 2 14:11:26 CET 2023


Hi,

FYI, your patch has been queued to stable release 21.11.6

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/08/23. 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/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/709992facac5f0fe25282aa2f20e3afc177039ef

Thanks.

Kevin

---
>From 709992facac5f0fe25282aa2f20e3afc177039ef Mon Sep 17 00:00:00 2001
From: Jiawen Wu <jiawenwu at trustnetic.com>
Date: Thu, 28 Sep 2023 17:47:53 +0800
Subject: [PATCH] net/ngbe: reconfigure MAC Rx when link update

[ upstream commit a7c5f95ed9c24c0dfef6ab795e4916cbc0bf6598 ]

Fix the bug that after setting flow control parameters, link status
change (for example, set PHY power on/off) causes the port to no longer
receive packets.

Fixes: b9246b8fa280 ("net/ngbe: support link update")

Signed-off-by: Jiawen Wu <jiawenwu at trustnetic.com>
---
 drivers/net/ngbe/ngbe_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ngbe/ngbe_ethdev.c b/drivers/net/ngbe/ngbe_ethdev.c
index 1e755f03a5..6ec15b60de 100644
--- a/drivers/net/ngbe/ngbe_ethdev.c
+++ b/drivers/net/ngbe/ngbe_ethdev.c
@@ -1924,4 +1924,6 @@ ngbe_dev_link_update_share(struct rte_eth_dev *dev,
 				NGBE_MACTXCFG_SPEED_1G | NGBE_MACTXCFG_TE);
 		}
+		wr32m(hw, NGBE_MACRXFLT, NGBE_MACRXFLT_PROMISC,
+			NGBE_MACRXFLT_PROMISC);
 	}
 
-- 
2.41.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-11-02 13:09:41.371707318 +0000
+++ 0020-net-ngbe-reconfigure-MAC-Rx-when-link-update.patch	2023-11-02 13:09:40.802163300 +0000
@@ -1 +1 @@
-From a7c5f95ed9c24c0dfef6ab795e4916cbc0bf6598 Mon Sep 17 00:00:00 2001
+From 709992facac5f0fe25282aa2f20e3afc177039ef Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a7c5f95ed9c24c0dfef6ab795e4916cbc0bf6598 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index a83fdc002a..dd387779ab 100644
+index 1e755f03a5..6ec15b60de 100644
@@ -22 +23 @@
-@@ -1962,4 +1962,6 @@ ngbe_dev_link_update_share(struct rte_eth_dev *dev,
+@@ -1924,4 +1924,6 @@ ngbe_dev_link_update_share(struct rte_eth_dev *dev,



More information about the stable mailing list