From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E8144600C; Tue, 7 Jan 2025 11:00:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A18F40676; Tue, 7 Jan 2025 11:00:21 +0100 (CET) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mails.dpdk.org (Postfix) with ESMTP id 2E00040A89; Mon, 6 Jan 2025 20:43:41 +0100 (CET) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2f42992f608so17143120a91.0; Mon, 06 Jan 2025 11:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736192620; x=1736797420; darn=dpdk.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=cDkWF/Bo9wuQAhKzm9lUYKoCFNaJ9WJrK2N8M6eFYS0=; b=Svjq2QmeSXqrK9Hgv4y3V6BdwmYoi3Sa6VVmjV5DM38ixRncSuNhQn+5q8GAJHbIQO NBQ5P25jX/Q3uYxyxP8TNXpXf3va/z3Ijf2avUugXVC6g4/Sq6fef+MRs48Y7NbvGL4n Viec3ejnUvLsDSN0//enCAJ8QZSV0EjGgnpLoI8Fx7+766V7PlCYo8+1NLp2gla7hXRp AEGUmrtkLoA7UD3s3sB2np2CN4/IacGRwOcvcjvs3GTP9U+AnF5juuR/qLl9yYrHZ7vO c1FewIli7b+eyFpk0tLI3YYEThGhLkSzR3Q97UoqGkFPjlfOFOzyKcvjsHaXZfyduyF1 bLqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736192620; x=1736797420; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cDkWF/Bo9wuQAhKzm9lUYKoCFNaJ9WJrK2N8M6eFYS0=; b=i3JekAwNQw85KLDHg0TMPIXse+qduAVBpPRXoJu253TRiHIcmgMd4VzPaeN1OM4twN czigAjPvmFoDgmGRd1x0kSUXEHj53+h3jg0tDp+yqka1zzKgsNiiHyBw9fVQ/omGcU2f s4/mhDIOTZ2gmVqEeLAEbFCjWIHVsdZ+lgP8td4s67yUpLcGkzqMNcfRpr9nyDBZ3D5r RN9Va+9REKcpy+Sakb7zfoe47NqgFCqtCq0AHnIROdf8041H1Cq28BJ+BF9bJciSW1uH tMG9zPw83xaYlZWNkdnCUAatecmzeyidtSOth6rurOqAGxI/UIa32sQVnEeG+9QULBrj Fi3Q== X-Gm-Message-State: AOJu0YwcdlQdLeoXJq/P/9Yd8I9lXhJjReUfhnJQB9qtQNI1AR8H2xvo MQ91J4mhDhXlW1TWqZTKJhXeIQow2T3no0BK0n0swqLzh+1c3hqErLXlL8cKlOMQP6LeH7Z/K65 KC6MgnlcY6qS9bP/nnWjZ/G1Rs80bhw== X-Gm-Gg: ASbGncs4aKmIkKlnqpPn7/7ye/7r/GFOSpNmaWZ4ywSPPrhsCvWXyOxJKbykLdQh3gS E+jP9pbEQ0bFaNf9MIX191NffSANeRcKr9FGM0Q== X-Google-Smtp-Source: AGHT+IF7DznNHqBR59owZZTsnz5k69ZUTHr1ls7Ge/aS4CdanL1p1ptTVKJRRn70l5JpbNC+GbDIJIK48lqK+WsTdS0= X-Received: by 2002:a17:90b:3cc6:b0:2ee:a04b:92d3 with SMTP id 98e67ed59e1d1-2f452eeda37mr77252618a91.34.1736192619675; Mon, 06 Jan 2025 11:43:39 -0800 (PST) MIME-Version: 1.0 From: Mike Bly Date: Mon, 6 Jan 2025 11:43:28 -0800 Message-ID: Subject: [PATCH] net/memif: Fix memif-rx buffer linking To: dev@dpdk.org Cc: stable@dpdk.org, jgrajcia@cisco.com Content-Type: multipart/alternative; boundary="0000000000005b8762062b0ed8be" X-Mailman-Approved-At: Tue, 07 Jan 2025 11:00:20 +0100 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --0000000000005b8762062b0ed8be Content-Type: text/plain; charset="UTF-8" Moving where dst_off is set in memif-rx function Bugzilla ID: 1609 Fixes: aa17df860891 ("net/memif: add a Rx fast path") Cc: stable@dpdk.org Cc: Jakub Grajciar Signed-off-by: Mike Bly --- 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 --0000000000005b8762062b0ed8be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Moving where=C2=A0dst= _off is set in memif-rx function
Bugzilla ID: 1609
Fixe= s: aa17df860891=C2=A0("net/memif: add a Rx fast path")
Cc: Jakub Grajciar=C2=A0<jgrajcia@cisco.com>

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

diff --git a/dr= ivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c
inde= x c0bf1e3bbf..bef1606550 100644
--- a/drivers/net/memif/rte_eth_memif.c<= br>+++ b/drivers/net/memif/rte_eth_memif.c
@@ -414,13 +414,12 @@ eth_mem= if_rx(void *queue, struct rte_mbuf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