patch 'net/axgbe: clear buffer on scattered Rx chaining failure' has been queued to stable release 21.11.3

Kevin Traynor ktraynor at redhat.com
Tue Oct 25 17:07:11 CEST 2022


Hi,

FYI, your patch has been queued to stable release 21.11.3

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/01/22. 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/9683271240f1b499ae6e94215d75a40cab7b2807

Thanks.

Kevin

---
>From 9683271240f1b499ae6e94215d75a40cab7b2807 Mon Sep 17 00:00:00 2001
From: Bhagyada Modali <bhagyada.modali at amd.com>
Date: Wed, 7 Sep 2022 23:31:08 -0400
Subject: [PATCH] net/axgbe: clear buffer on scattered Rx chaining failure

[ upstream commit 30ff4d00d92dd4126efc8236299126e199e92461 ]

Clearing mbuf, first_seg when chaining mbufs fail.
Increment the error count for the same.

Fixes: 965b3127d425 ("net/axgbe: support scattered Rx")

Signed-off-by: Bhagyada Modali <bhagyada.modali at amd.com>
Acked-by: Chandubabu Namburu <chandu at amd.com>
---
 drivers/net/axgbe/axgbe_rxtx.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/axgbe/axgbe_rxtx.c b/drivers/net/axgbe/axgbe_rxtx.c
index d73f0ef49c..968602bdff 100644
--- a/drivers/net/axgbe/axgbe_rxtx.c
+++ b/drivers/net/axgbe/axgbe_rxtx.c
@@ -420,6 +420,8 @@ next_desc:
 		if (first_seg != NULL) {
 			if (rte_pktmbuf_chain(first_seg, mbuf) != 0) {
-				rte_mempool_put(rxq->mb_pool,
-						first_seg);
+				rte_pktmbuf_free(first_seg);
+				first_seg = NULL;
+				rte_pktmbuf_free(mbuf);
+				rxq->errors++;
 				eop = 0;
 				break;
-- 
2.37.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-10-25 14:19:00.271871746 +0100
+++ 0076-net-axgbe-clear-buffer-on-scattered-Rx-chaining-fail.patch	2022-10-25 14:18:58.504798424 +0100
@@ -1 +1 @@
-From 30ff4d00d92dd4126efc8236299126e199e92461 Mon Sep 17 00:00:00 2001
+From 9683271240f1b499ae6e94215d75a40cab7b2807 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 30ff4d00d92dd4126efc8236299126e199e92461 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 4c16c59f37..f2136e30b0 100644
+index d73f0ef49c..968602bdff 100644
@@ -22 +23 @@
-@@ -419,6 +419,8 @@ next_desc:
+@@ -420,6 +420,8 @@ next_desc:



More information about the stable mailing list