Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22438522EE7; Thu, 17 Sep 2026 17:25:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789665915; cv=none; b=aHO1siuHKVQmotuN50J5f3LGqCyTjKXPdZgoap+pwcFIV7F4rkWT63GkgEqRx3XOGKe/vK+kpgPisqch0YdWcoH/j27a614o/Oecvyy0CamlriqbmHN7hgHzGy+syS8h12KeKsj9mfZnMnZ7/RSP05ZqNcyt18bVCwwPEBmRcZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789665915; c=relaxed/simple; bh=ftx9xrZUlhAxBj0837TZP9IXL0gEsmi4o3B4QaIshLk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KaVt+USN+uZSxJHyBaDpvFEtExR96BZ2HfePvfxAZyJTKX0q8xEu5BS/zWtLnv1Li72KAGa0wgzJ6Sit+JG+hAfudvOzaiLHAGxyI3iU2mhgkvKbQZJBT43zRJPEZ9cfQXZy34Lar9t2KBr5DkxRRZN3L/HC3tBf2N6xFS068sw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CEVPWxPl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CEVPWxPl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FF021F000FF; Thu, 17 Sep 2026 17:25:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789665914; bh=QuB9inJ7TWfpelGIafdLIWKdCoGzDqIoF7MWG0avoQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=CEVPWxPlISJh/4wtlWLRwBm5STaPJTe6JDBlyd8tYguuRlUvAHWS6ttSf3zONkx3A 4pU3lgx4OVsawnBa/oDGRVV2DHrQvzfXWe6rPLGb7IiiAcE9o8VqCFxRHZqvFZi/bb THSKc1WjJxp7AsYBvGNErbnW3FCFKAduYpyS2p/Y= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Carolina Jubran , Alex Lazar , Tariq Toukan , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.18 0814/1250] net/mlx5e: Fix ETS zero BW reporting when one TC holds 100% Date: Thu, 17 Sep 2026 16:10:09 +0100 Message-ID: <20260917151613.990900720@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260917151551.901433442@linuxfoundation.org> References: <20260917151551.901433442@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Carolina Jubran [ Upstream commit e7ee89740800a1cf253713e9249c3ee9203ebe91 ] When ETS TCs with zero bandwidth are configured, the driver programs the firmware using an alternate representation. On get, it needs to recognize that representation so those TCs can be translated back and reported as 0% bandwidth. The existing detection relied on the programmed bandwidth because it was enough to identify this representation. However, when a single ETS TC owns 100% of the bandwidth, its firmware representation becomes the same as a strict-priority TC, causing zero-bandwidth ETS TCs to be reported with non-zero bandwidth values. Use the cached TSA instead to distinguish the ETS and strict-priority cases. Fixes: be0f161ef141 ("net/mlx5e: DCBNL, Implement tc with ets type and zero bandwidth") Signed-off-by: Carolina Jubran Reviewed-by: Alex Lazar Signed-off-by: Tariq Toukan Link: https://patch.msgid.link/20260902193224.3668743-1-tariqt@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c b/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c index 20db77552545e..bad8ef5716069 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c @@ -133,7 +133,7 @@ static int mlx5e_dcbnl_ieee_getets(struct net_device *netdev, if (err) return err; - if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC && + if (priv->dcbx.tc_tsa[i] == IEEE_8021QAZ_TSA_ETS && tc_group[i] == (MLX5E_LOWEST_PRIO_GROUP + 1)) is_zero_bw_ets_tc = true; -- 2.53.0