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 79364489EF for ; Mon, 27 Oct 2025 17:20:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7484C4028B; Mon, 27 Oct 2025 17:20:46 +0100 (CET) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mails.dpdk.org (Postfix) with ESMTP id EFE924064F for ; Mon, 27 Oct 2025 17:20:44 +0100 (CET) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-47118259fd8so36785535e9.3 for ; Mon, 27 Oct 2025 09:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761582044; x=1762186844; 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=ln466UM8pXDc/B76hPjSdsrBB1ozPyMbnIA573UK2wM=; b=OaZyx5ix3onIC3G7BRykgDDBQgCk3ysporlRPZdNCXb1nBiLTEhbf7Zbr0QqVGnDMX 4cU8uuINlshMpvEXgwzrmqeOjLcO1KxFHyZFx0JoXQEvdWMHVQu70Fi3IO7BVWx9urtK uGX7zoXLAVMGxPjr3SQQtD5QrWKBD8Kq2OaDyNzdtfSS5O1mry0LU5R3MHeGUwNcoNLb 1YpUvgmAKPO8lzYoeNLEU3DtMnR1TuOlSFQkJ1KeL2R/27hlWqnVjdRiMWEJPGmWoLN6 vP+fwv0kprLfwvG0/jNq0FSo21fXjQ2awQTRm0Wv0Ti1ABuB9LJaNAsqOGvC0Zup39QX ZxLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761582044; x=1762186844; 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=ln466UM8pXDc/B76hPjSdsrBB1ozPyMbnIA573UK2wM=; b=wila73x0RfRRO8KnvQEv+HOa6gou8YyO2B9waHiKBhKFX128PwjbCTfdvuvU7qXjlP T7ZS5xAuU484KlU0TXHqsuB1AS1KbnZ7zxoFYVPajW9alfpIOY3+/+GOCtmx85qDGDeJ 7NRxRa6LHF5kk6bbVvn87jF6La/qSiW563TWKwqAHY2raMKG5/vmBgzS5LQxEbn697y+ 6iS+LF7q9A84Qcr67MmYRMaNO76RHOMTEcHK7iHSN3yclOPPCiFKI9SCaTZVs6f29Q+x tqAxfDEO8+CzTmBtdSKMvIi99bjpnmZLiJtfBN758YfhuARDx2/SbrNVMt8gSYC7xUEy QoKQ== X-Gm-Message-State: AOJu0Yy+gow4mZx5019c9HY9Drs/Oo4bXxfvqoIZQ3fsqB07ZUgg/a76 2i0eiNhmyU7QvyM3jP05lZUKQ7VVV3tohR48XRnKhpsgsIauVTS0i3soNC2s2A== X-Gm-Gg: ASbGnctjhnClizq1yz61RMHAQiB+RtBmOM6G17RXs7yeoeaf1+YwW2F8AK3YUiHqTE7 CzFeIHJOWVMntazXy9Z0JT9ZfnfwezTuRUpCdIurHOuSL0nzy3O6+SCGRUVLbClPCxWPbzkm7xL +Uw3gHIIaa+8fHF1BblcChWZIOFgFJ+atB28G530Xky8h7gJl4ZPAMmgEpDu24GWMLlQv/gb+Fq 7gO9oRA6Ytd3AxGRziM2SrTruRLVM1VDC9JBbzhUaVkgV2L/3V+L5XaqNvG1bIGW2sbKSUq6RFF 3z7Gr2ykFT4pO7raI3mnD4uEvQcR4g3f83guE+occVyapu22rF3ZAj/aQsAF38hlbvwY4DVI2aq OSGFAOTD97Z0yIjhXTtyZslWsCdVcToAJZw5eaN6wq9bhWrC0+7KMEktnRnbT8MvsHAcVW2Vdo4 qF/0BXBe0KljNDVEAr X-Google-Smtp-Source: AGHT+IFcNZjdL/Msf/U5az+E4gkeF/Cg0fhvfJOW07DH10ox0JUfincHHYmo3wOqWWYTG7ts4p/D/A== X-Received: by 2002:a05:600c:5309:b0:477:fcb:226b with SMTP id 5b1f17b1804b1-47717deeaafmr3134735e9.2.1761582044357; Mon, 27 Oct 2025 09:20:44 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:6fc5:c3bc:147e:832c]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-475dd374e21sm145688975e9.9.2025.10.27.09.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Oct 2025 09:20:43 -0700 (PDT) From: luca.boccassi@gmail.com To: Gagandeep Singh Cc: dpdk stable Subject: patch 'net/dpaa2: fix shaper rate' has been queued to stable release 22.11.11 Date: Mon, 27 Oct 2025 16:18:50 +0000 Message-ID: <20251027162001.3710450-12-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/548ea3aa37583adf216897406d4c9e56c4c682d2 Thanks. Luca Boccassi --- >From 548ea3aa37583adf216897406d4c9e56c4c682d2 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Wed, 2 Jul 2025 15:21:41 +0530 Subject: [PATCH] net/dpaa2: fix shaper rate [ upstream commit 953b5576093dcd148b674bd2d53e5482970c1270 ] This patch fixes the shaper rate by configuring the user given rate in bytes. Earlier driver was considering the user given rate value in bits. Fixes: ac624068ee25 ("net/dpaa2: support traffic management") Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa2_tm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_tm.c b/drivers/net/dpaa2/dpaa2_tm.c index 0633259624..9b9cbe4259 100644 --- a/drivers/net/dpaa2/dpaa2_tm.c +++ b/drivers/net/dpaa2/dpaa2_tm.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright 2020-2021 NXP + * Copyright 2020-2024 NXP */ #include @@ -726,12 +726,12 @@ dpaa2_hierarchy_commit(struct rte_eth_dev *dev, int clear_on_fail, tx_cr_shaper.max_burst_size = node->profile->params.committed.size; tx_cr_shaper.rate_limit = - node->profile->params.committed.rate / - (1024 * 1024); + (node->profile->params.committed.rate / + (1024 * 1024)) * 8; tx_er_shaper.max_burst_size = node->profile->params.peak.size; tx_er_shaper.rate_limit = - node->profile->params.peak.rate / (1024 * 1024); + (node->profile->params.peak.rate / (1024 * 1024)) * 8; /* root node */ if (node->parent == NULL) { DPAA2_PMD_DEBUG("LNI S.rate = %u, burst =%u\n", -- 2.47.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-10-27 15:54:35.288904851 +0000 +++ 0012-net-dpaa2-fix-shaper-rate.patch 2025-10-27 15:54:34.731947944 +0000 @@ -1 +1 @@ -From 953b5576093dcd148b674bd2d53e5482970c1270 Mon Sep 17 00:00:00 2001 +From 548ea3aa37583adf216897406d4c9e56c4c682d2 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 953b5576093dcd148b674bd2d53e5482970c1270 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index f91392b092..dbf66c756e 100644 +index 0633259624..9b9cbe4259 100644 @@ -24 +25 @@ -- * Copyright 2020-2023 NXP +- * Copyright 2020-2021 NXP @@ -29 +30 @@ -@@ -733,12 +733,12 @@ dpaa2_hierarchy_commit(struct rte_eth_dev *dev, int clear_on_fail, +@@ -726,12 +726,12 @@ dpaa2_hierarchy_commit(struct rte_eth_dev *dev, int clear_on_fail, @@ -44 +45 @@ - DPAA2_PMD_DEBUG("LNI S.rate = %u, burst =%u", + DPAA2_PMD_DEBUG("LNI S.rate = %u, burst =%u\n",