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 9BC8D489EF for ; Mon, 27 Oct 2025 17:23:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9401D4028B; Mon, 27 Oct 2025 17:23:28 +0100 (CET) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mails.dpdk.org (Postfix) with ESMTP id A98DD4028B for ; Mon, 27 Oct 2025 17:23:26 +0100 (CET) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-42420c7de22so2450960f8f.1 for ; Mon, 27 Oct 2025 09:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761582206; x=1762187006; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9UlhRjyKkOVmpiog13CyauaN3lfNpNghZFYZ/8mdU3w=; b=PpO2k7DTz5sA8UV8+DVwNVxhqLlU3sji3zziBU8OUOJUsFoBTw+ijCN6LNoEKai/qQ RtDLYMQZOdP0G3K5ZqRLM3g98spbd8zHtAbpTbWCu5/EDX8buLTzKvX+SqAxNycJFsEx 08lUM0YHwQUJYj6gFBR9lAP4cuFlhDjFxYsN26Qg8FjqwghZUBwrIoAai3ghmPK8zv+A GbBpUEH2HLFpm3/xbdWNKT7AagLVJOETwqMyPTuzCW6x9KlQq/RKQPYLkvDW3vPkdfkq 3pBVnJcG2hTbu54oTn3ZkvTjdr2FSU5dQDc95xgkFEgS7rvhOa9nfdBJP2ykh/FrTOCu VQ0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761582206; x=1762187006; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9UlhRjyKkOVmpiog13CyauaN3lfNpNghZFYZ/8mdU3w=; b=jEGbhtSGgyP8Bj8QQAt9rLdmnVpkbIlED3odxXQpxceM33gu/uAayrbezQ7Nxtxesg Cw/OOS76QPa3LFxVDeHLOEgB4EHV2Z/Q6KKoYVQhGSERWCyfIYE/+uiumerHZTYbLBqd a1TIpH1Aht/4uO99Jcnh/OlmFm7PI/Y4orBVmtSsbX+R6CZMuKX+UOfeqwKdffuuZz6w IHJXWrR7pSfWL4zEuJYKgc2D1ULVygI9sj+Y98ZO4m5oyGN4SACPm/68kNfdWmooT5uS ldqZYDPfFbi/AJBpqdR2b0o1zHl0B2eiISOOhik3qRcSAZ4k9tEUDVGtscYm67ixy9Ce 5HUg== X-Forwarded-Encrypted: i=1; AJvYcCU2HpVq72HLEC/QVAW0rTH/xxcTK8RNKVmvcCNx7uHnNg0jqonV4ArIm0MskhDMWVKSozXox7M=@dpdk.org X-Gm-Message-State: AOJu0YwKgtmTFTM3vs5vwk6Ta4VstX8N6a6iil8VSCkQSKQHqlaDtEqN cYiSVb6vVMlxrOjtEedl0Oox/V+IPbsp+6moCarlo1iE4L7DaNgjUZJOguDWqDfo X-Gm-Gg: ASbGnctXak/T7qLA1hY9UOR2hV20cB107hMPKQXF92dBHTBZgnmCvSk14cJzsX4TLxT HM6XNLPq+dN8oSaSAPMqnJojoKmDJnJunpMCriY4kh9+cJKtuJuK4bbOXb9AJTL6XjBZl8C84f9 0GBuj+NLY2D7mnqefdxb8dV8fVwHBAJyiGphc6cv/zSFFEdE8OTU034UvfpBb0Y6xapTJJrQolx ATgxp13sH4+2XRI5l53OOioTdr4pqLh9M9lw3XsAvDKGjX23uZaVomna5fPRZrQJyzOoqvmfysv jby3QQYJaCTjucLXOlxnEDCzvLYWTkQNYww/FOPOqODiYvOkyIxP0xHGxD+zLhflJ1vZGBBYPFG 4Rk/dLu+DNe8Qu+1D6eQQbXm+Ljidhf4FrBG/J5a52oFYseBNnC6AdtPLiXgF2ciybU8lOjckru 710Pn8iw== X-Google-Smtp-Source: AGHT+IGfbYJau41CutQWsKi2XCBa8YJQK/e1KM1TSH7SKkSbMTP3moJ85NazV8Bqc+oFde3+FNqeag== X-Received: by 2002:a5d:584b:0:b0:3ec:d7c4:25b6 with SMTP id ffacd0b85a97d-429a7e637fdmr301454f8f.27.1761582206180; Mon, 27 Oct 2025 09:23:26 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:6fc5:c3bc:147e:832c]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-429952df3c7sm14898086f8f.40.2025.10.27.09.23.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Oct 2025 09:23:25 -0700 (PDT) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Sachin Saxena , dpdk stable Subject: patch 'net/enetfec: fix buffer descriptor size configuration' has been queued to stable release 22.11.11 Date: Mon, 27 Oct 2025 16:19:39 +0000 Message-ID: <20251027162001.3710450-61-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251027162001.3710450-1-luca.boccassi@gmail.com> References: <20251027162001.3710450-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi, FYI, your patch has been queued to stable release 22.11.11 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/29/25. 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/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/88b56e48b6d7424a0792ed714489390bc8d848de Thanks. Luca Boccassi --- >From 88b56e48b6d7424a0792ed714489390bc8d848de Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Mon, 6 Oct 2025 13:34:02 +0530 Subject: [PATCH] net/enetfec: fix buffer descriptor size configuration [ upstream commit f034c096b86ed79345cc1f83c6191713b2814fb0 ] The driver previously allowed arbitrary descriptor counts, which could lead to misaligned buffer allocations. This patch enforces the use of fixed descriptor ring sizes for both RX and TX queues, ensuring proper buffer allocation and avoiding potential runtime issues. Fixes: bb5b5bf1e5c6 ("net/enetfec: support queue configuration") Signed-off-by: Hemant Agrawal Acked-by: Sachin Saxena --- drivers/net/enetfec/enet_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/enetfec/enet_ethdev.c b/drivers/net/enetfec/enet_ethdev.c index d7a1121ff4..27f338a9af 100644 --- a/drivers/net/enetfec/enet_ethdev.c +++ b/drivers/net/enetfec/enet_ethdev.c @@ -389,7 +389,7 @@ enetfec_tx_queue_setup(struct rte_eth_dev *dev, return -ENOMEM; } - if (nb_desc > MAX_TX_BD_RING_SIZE) { + if (nb_desc != MAX_TX_BD_RING_SIZE) { nb_desc = MAX_TX_BD_RING_SIZE; ENETFEC_PMD_WARN("modified the nb_desc to MAX_TX_BD_RING_SIZE"); } @@ -473,7 +473,7 @@ enetfec_rx_queue_setup(struct rte_eth_dev *dev, return -ENOMEM; } - if (nb_rx_desc > MAX_RX_BD_RING_SIZE) { + if (nb_rx_desc != MAX_RX_BD_RING_SIZE) { nb_rx_desc = MAX_RX_BD_RING_SIZE; ENETFEC_PMD_WARN("modified the nb_desc to MAX_RX_BD_RING_SIZE"); } -- 2.47.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-10-27 15:54:37.031667123 +0000 +++ 0061-net-enetfec-fix-buffer-descriptor-size-configuration.patch 2025-10-27 15:54:34.839950653 +0000 @@ -1 +1 @@ -From f034c096b86ed79345cc1f83c6191713b2814fb0 Mon Sep 17 00:00:00 2001 +From 88b56e48b6d7424a0792ed714489390bc8d848de Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit f034c096b86ed79345cc1f83c6191713b2814fb0 ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index 7c2926409e..f7a45fcd4d 100644 +index d7a1121ff4..27f338a9af 100644 @@ -24 +25 @@ -@@ -384,7 +384,7 @@ enetfec_tx_queue_setup(struct rte_eth_dev *dev, +@@ -389,7 +389,7 @@ enetfec_tx_queue_setup(struct rte_eth_dev *dev, @@ -33 +34 @@ -@@ -462,7 +462,7 @@ enetfec_rx_queue_setup(struct rte_eth_dev *dev, +@@ -473,7 +473,7 @@ enetfec_rx_queue_setup(struct rte_eth_dev *dev,