patch 'net/memif: fix descriptor Tx flags corruption' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Mar 19 11:02:59 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.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 03/23/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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/2942b9389f9db8ebb64c271085676ef7aef09c6c
Thanks.
Kevin
---
>From 2942b9389f9db8ebb64c271085676ef7aef09c6c Mon Sep 17 00:00:00 2001
From: Sriram Yagnaraman <sriram.yagnaraman at ericsson.com>
Date: Tue, 3 Mar 2026 12:01:52 +0100
Subject: [PATCH] net/memif: fix descriptor Tx flags corruption
[ upstream commit f7a52200d4c2d12c0a35e643cb1d6fd45b21ccb7 ]
The memif Tx path was using |= to set descriptor flags, which could
leave stale flag bits from previous ring iterations. This caused
descriptor corruption when the ring wrapped around, leading to
malformed packet chains and RX failures.
Initialize d0->flags to 0 before setting MEMIF_DESC_FLAG_NEXT to
ensure clean descriptor state on each transmission.
Fixes: 43b815d88188 ("net/memif: support zero-copy slave")
Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman at ericsson.com>
---
drivers/net/memif/rte_eth_memif.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c
index 8d7060cd7c..effcee3721 100644
--- a/drivers/net/memif/rte_eth_memif.c
+++ b/drivers/net/memif/rte_eth_memif.c
@@ -715,4 +715,5 @@ eth_memif_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
next_in_chain1:
d0 = &ring->desc[slot & mask];
+ d0->flags = 0;
cp_len = rte_pktmbuf_data_len(mbuf);
@@ -727,5 +728,5 @@ next_in_chain1:
if (--nb_segs > 0) {
if (n_free) {
- d0->flags |= MEMIF_DESC_FLAG_NEXT;
+ d0->flags = MEMIF_DESC_FLAG_NEXT;
mbuf = mbuf->next;
goto next_in_chain1;
@@ -748,4 +749,5 @@ free_mbufs:
saved_slot = slot;
d0 = &ring->desc[slot & mask];
+ d0->flags = 0;
dst_off = 0;
dst_len = (type == MEMIF_RING_C2S) ?
@@ -761,10 +763,10 @@ next_in_chain2:
slot++;
n_free--;
- d0->flags |= MEMIF_DESC_FLAG_NEXT;
+ d0->flags = MEMIF_DESC_FLAG_NEXT;
d0 = &ring->desc[slot & mask];
+ d0->flags = 0;
dst_off = 0;
dst_len = (type == MEMIF_RING_C2S) ?
pmd->run.pkt_buffer_size : d0->length;
- d0->flags = 0;
} else {
slot = saved_slot;
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-19 10:01:08.868277834 +0000
+++ 0061-net-memif-fix-descriptor-Tx-flags-corruption.patch 2026-03-19 10:01:07.123110530 +0000
@@ -1 +1 @@
-From f7a52200d4c2d12c0a35e643cb1d6fd45b21ccb7 Mon Sep 17 00:00:00 2001
+From 2942b9389f9db8ebb64c271085676ef7aef09c6c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit f7a52200d4c2d12c0a35e643cb1d6fd45b21ccb7 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list