From mboxrd@z Thu Jan 1 00:00:00 1970 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 DAE263B3BE1; Wed, 30 Sep 2026 19:07:50 +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=1790795272; cv=none; b=L4l+OATV7Q/XzZTY/6uY+ShZTA1LIyKisAG/kO6ElKhMHnBITrvS4Kl/O89b99HaHcjUhhdww9QMC/okPdzbfNYsTePkvaoXav5Q0zqFppqxEIQc+vxAyfREVsA7i90t4Hj7J9dQ7Rj5THqCBrKc6lbJIlzzgJTyqK+Kx24r5dI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790795272; c=relaxed/simple; bh=FxMrTMV73GgzggO/X4Q+vjoPC5WmScC6BTKYGWxPsIc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pta5aPzZParpQ2agKJVh+eLwtw+YbdiKkWNkcDEQd3Itlo8fICMYQv9w3HbZhUZrXXLzyHkGPjLaNhkGEmK4UdcPD/QYHGYgX8/lQx18mvbvYtlK46TqZ3H7vzZPFpoHgtf5IagP1cyp0AqrBDmwItBV9LfC+ceLtWINaeCtpF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C+qIf+X0; 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="C+qIf+X0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42E541F000FF; Wed, 30 Sep 2026 19:07:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790795270; bh=uH5ltTyy+NQWnfbLtr2mmXXqVdQgGQpSZEdpgpWRZEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=C+qIf+X0tfBVjPecLTjlQaTwaVm/TYC7FyjbAEHszNDzVkN+REt8rzrMuztCh7UrG /UtmMQZJB5c7P5JZ7zdZtQBT12Wf0SaCAAVytGaQecmE88CQCmDhvDHZ6ZNOrumMZZ dd1CZQgAih639MJoA2W2bdlxPxarHWJXxZbO/Zso= 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.6 0502/1193] net/mlx5e: Fix ETS zero BW reporting when one TC holds 100% Date: Wed, 30 Sep 2026 17:19:46 +0200 Message-ID: <20260930152445.314207055@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152434.301151190@linuxfoundation.org> References: <20260930152434.301151190@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.6-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 1a73fa436a136..4b331069fbcfe 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