Subject: [PATCH] net/memif: Fix memif-tx buffer flags handling
Mike Bly
bly454 at gmail.com
Mon Jan 6 20:46:26 CET 2025
Added missing initialization of memif flags field per memif buffer
Bugzilla ID: 1609
Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD")
Cc: stable at dpdk.org
Cc: Jakub Grajciar <jgrajcia at cisco.com>
Signed-off-by: Mike Bly <bly454 at gmail.com>
---
drivers/net/memif/rte_eth_memif.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/memif/rte_eth_memif.c
b/drivers/net/memif/rte_eth_memif.c
index bef1606550..63bb72428d 100644
--- a/drivers/net/memif/rte_eth_memif.c
+++ b/drivers/net/memif/rte_eth_memif.c
@@ -712,6 +712,7 @@ eth_memif_tx(void *queue, struct rte_mbuf **bufs,
uint16_t nb_pkts)
next_in_chain1:
d0 = &ring->desc[slot & mask];
cp_len = rte_pktmbuf_data_len(mbuf);
+ d0->flags = 0;
rte_memcpy((uint8_t
*)memif_get_buffer(proc_private, d0),
rte_pktmbuf_mtod(mbuf, void *), cp_len);
@@ -747,6 +748,7 @@ eth_memif_tx(void *queue, struct rte_mbuf **bufs,
uint16_t nb_pkts)
dst_off = 0;
dst_len = (type == MEMIF_RING_C2S) ?
pmd->run.pkt_buffer_size : d0->length;
+ d0->flags = 0;
next_in_chain2:
src_off = 0;
--
2.43.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250106/1934fac4/attachment.htm>
More information about the dev
mailing list