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 57EDB4600C for ; Tue, 7 Jan 2025 11:00:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 53FE440E17; Tue, 7 Jan 2025 11:00:34 +0100 (CET) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id 90C0140687; Mon, 6 Jan 2025 20:46:38 +0100 (CET) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-2ef6c56032eso15825473a91.2; Mon, 06 Jan 2025 11:46:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736192797; x=1736797597; darn=dpdk.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=KrChw9IQWdKSjdX7lR1OSZ3IWiRBndv/76eXXNYFFRE=; b=hi9XyJ27fLGSdYAcGfABSza18Iw8eu7Ibp+oSCE3IOdIwrjGJhbzI3X544mxNXMgvm VLdlc0snHC73WTO7tz6hk2XXwSjIVHv79831cxsvZ9h64rfmpG1vRi7bNQ487t+FVrjM VO+nPGnlxaijizaKC/HJLjSX6toYF0ch9hPA0aLRL4w/POOsHQRLZh8ndPjoWnh7tMZG gv4aSIc8TRpHEEKfzTT1GG1xBfl5zd0UYPy5mnxdHLtliF0vnWlFBvBcxPVfNKB3e0wt LOEoBuaSkVNRmScfzZANgwHPOtMCCTFCVbWyQVaC04WRAIx/p8EXhuu6IkUNX/0jmfd4 l85w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736192797; x=1736797597; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KrChw9IQWdKSjdX7lR1OSZ3IWiRBndv/76eXXNYFFRE=; b=m59k7/4LvT5G7rc1drMoYnjJ777I3cmgg0kZ6ZmekuVuuHgGPKQDGk93U8WXrFKYPM TwGhm5sdaR4SIzuRfzO4VFysvtX84nGGxd3CWswtgsKxqdUGQ9/pohdSyqUJw3uvKOqC W1nsYXHaeMiDOd4ZY/Tjxo7lqLkH6iF4/aa/rU4qStiUh9TAEfzLnu9or3Smnv6aR7Lb eTaEjo4WP8orl54yqLmJIRrP5sNDjYIVmAfuxrjtSGxhTEt9O69rQBbI4gK9vwsWAEqD IzcS9J0AV2cEYwzR7MlzZZYkIGDxfAUwowpI0yKgId2nJrZRscAdGG/i73bxqVdmqOfm yCcQ== X-Gm-Message-State: AOJu0YyHv57Jin44EKvMKmvSlEwxbJcyEhcbilt44Xp5OATwR54UImro s8Q5OJhP4uu7EuwnIzLOmKXqZnvwsrmgB01xrG61FJsJtW5A2L/ZVJwgX4uakp+2OF01rQEB+pm gst1aQPV9SFKn6Y0dGNLU75FgxZpKaLQ7Ugk= X-Gm-Gg: ASbGncuNGS+6O5KZj7XwYPSk2ISVhpewdZPq2vxL4xrpu/ikuGZK80zsThJ1DAfWha0 WsfPjKHSgMBpmbmD5RFpZyy50SBDx5LR5YUyaRg== X-Google-Smtp-Source: AGHT+IE3s+O2dhM8iAlRRL1VhuDgOO/lRCId4AaPoQVQ7GM6KAtY7aZ06GdcC9xLSYuE2zPX/1RMk8a//Z/vuacBs5E= X-Received: by 2002:a17:90b:2d4c:b0:2ee:c2b5:97a0 with SMTP id 98e67ed59e1d1-2f452ec290emr82105669a91.25.1736192797493; Mon, 06 Jan 2025 11:46:37 -0800 (PST) MIME-Version: 1.0 From: Mike Bly Date: Mon, 6 Jan 2025 11:46:26 -0800 Message-ID: Subject: Subject: [PATCH] net/memif: Fix memif-tx buffer flags handling To: dev@dpdk.org Cc: stable@dpdk.org, jgrajcia@cisco.com Content-Type: multipart/alternative; boundary="000000000000f4d083062b0ee2ef" X-Mailman-Approved-At: Tue, 07 Jan 2025 11:00:33 +0100 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org --000000000000f4d083062b0ee2ef Content-Type: text/plain; charset="UTF-8" Added missing initialization of memif flags field per memif buffer Bugzilla ID: 1609 Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD") Cc: stable@dpdk.org Cc: Jakub Grajciar Signed-off-by: Mike Bly --- 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 --000000000000f4d083062b0ee2ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Added=C2=A0missing initialization of memif flags field per= memif buffer
Bugzilla ID:=C2=A01609
Fixes: 09c7e63a71f9 (&qu= ot;net/memif: introduce memory interface PMD")
Cc: Jakub Graj= ciar <jgrajcia@cisco.com>
Signed-off-by: Mike Bly <bly45= 4@gmail.com>
---
=C2=A0drivers/net/memif/rte_eth_memif.c | 2 += +
=C2=A01 file changed, 2 insertions(+)

diff --git a/drivers/net/= memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c
index bef16065= 50..63bb72428d 100644
--- a/drivers/net/memif/rte_eth_memif.c
+++ b/d= rivers/net/memif/rte_eth_memif.c
@@ -712,6 +712,7 @@ eth_memif_tx(void *= queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
=C2=A0next_in_chain1:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 d0 =3D &ring->desc[slot & mask];
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cp_len = =3D rte_pktmbuf_data_len(mbuf);
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 d0->flags =3D 0;
=C2=A0
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 rte_memcpy((uint8_t *)memif_get_buffer(proc_private, d0),
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rte_pktmbuf_mtod(mbuf, void *), cp_len);@@ -747,6 +748,7 @@ eth_memif_tx(void *queue, struct rte_mbuf **bufs, uint= 16_t nb_pkts)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 dst_off =3D 0;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dst_len =3D (type = =3D=3D MEMIF_RING_C2S) ?
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 pmd->= run.pkt_buffer_size : d0->length;
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 d0->flags =3D 0;
=C2=A0=
=C2=A0next_in_chain2:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 src_off =3D 0;
--
2.43.5
<= /div>
--000000000000f4d083062b0ee2ef--