DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v2] net/memif: Fix memif-rx buffer linking
@ 2025-01-07 18:22 Mike Bly
  2025-01-08 15:36 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Bly @ 2025-01-07 18:22 UTC (permalink / raw)
  To: dev; +Cc: stable, jgrajcia

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

Moving where dst_off is set in memif-rx function. It should be
initialized for each new dpdk-mbuf, not each memif-buffer.
Bugzilla ID: 1609
Fixes: aa17df860891 ("net/memif: add a Rx fast path")
Cc: stable@dpdk.org
Cc: Jakub Grajciar <jgrajcia@cisco.com>

Signed-off-by: Mike Bly <bly454@gmail.com>
---
 drivers/net/memif/rte_eth_memif.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/memif/rte_eth_memif.c
b/drivers/net/memif/rte_eth_memif.c
index c0bf1e3bbf..bef1606550 100644
--- a/drivers/net/memif/rte_eth_memif.c
+++ b/drivers/net/memif/rte_eth_memif.c
@@ -414,13 +414,12 @@ eth_memif_rx(void *queue, struct rte_mbuf **bufs,
uint16_t nb_pkts)
  goto no_free_bufs;
  mbuf = mbuf_head;
  mbuf->port = mq->in_port;
-
+ dst_off = 0;
 next_slot2:
  s0 = cur_slot & mask;
  d0 = &ring->desc[s0];

  src_len = d0->length;
- dst_off = 0;
  src_off = 0;

  do {
-- 
2.43.5

[-- Attachment #2: Type: text/html, Size: 1215 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-08 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-07 18:22 [PATCH v2] net/memif: Fix memif-rx buffer linking Mike Bly
2025-01-08 15:36 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).