patch 'net/memif: fix overwriting of head segment' has been queued to stable release 21.11.2
Kevin Traynor
ktraynor at redhat.com
Thu Jun 9 13:36:21 CEST 2022
Hi,
FYI, your patch has been queued to stable release 21.11.2
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/13/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/277cd2bf752d6f118df705440aa8c33387828df2
Thanks.
Kevin
---
>From 277cd2bf752d6f118df705440aa8c33387828df2 Mon Sep 17 00:00:00 2001
From: Joyce Kong <joyce.kong at arm.com>
Date: Wed, 25 May 2022 05:56:35 +0000
Subject: [PATCH] net/memif: fix overwriting of head segment
[ upstream commit 10c4c4d4eac1b7def2d2e8a63f9d302cf42a606c ]
The 'dst_off' was reset in multi segment case.
This caused memif buffer segment to write to
beginning of mbuf, overwriting previous data.
Fix it with this patch.
Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD")
Reported-by: Ferruh Yigit <ferruh.yigit at xilinx.com>
Signed-off-by: Joyce Kong <joyce.kong at arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
---
drivers/net/memif/rte_eth_memif.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c
index d3459c5007..205d08b028 100644
--- a/drivers/net/memif/rte_eth_memif.c
+++ b/drivers/net/memif/rte_eth_memif.c
@@ -352,4 +352,5 @@ eth_memif_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
mbuf = mbuf_head;
mbuf->port = mq->in_port;
+ dst_off = 0;
next_slot:
@@ -358,5 +359,4 @@ next_slot:
src_len = d0->length;
- dst_off = 0;
src_off = 0;
--
2.34.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2022-06-09 12:34:30.585345710 +0100
+++ 0034-net-memif-fix-overwriting-of-head-segment.patch 2022-06-09 12:34:29.736980625 +0100
@@ -1 +1 @@
-From 10c4c4d4eac1b7def2d2e8a63f9d302cf42a606c Mon Sep 17 00:00:00 2001
+From 277cd2bf752d6f118df705440aa8c33387828df2 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 10c4c4d4eac1b7def2d2e8a63f9d302cf42a606c ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index 587ad45576..dd951b8296 100644
+index d3459c5007..205d08b028 100644
@@ -25 +26 @@
-@@ -349,4 +349,5 @@ eth_memif_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
+@@ -352,4 +352,5 @@ eth_memif_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
@@ -31 +32 @@
-@@ -355,5 +356,4 @@ next_slot:
+@@ -358,5 +359,4 @@ next_slot:
More information about the stable
mailing list