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 C591D2D9484; Wed, 30 Sep 2026 18:04:28 +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=1790791469; cv=none; b=FBgn8L677tpTJ+WRfga/Na063T6C832YFfSJAOec9ucuHwjs6TMUyPYbombk+qZ2Oxz4Gy3z5zUC2zGk8xDMyRVRMKfzt2r8rP85aOLMKYgQxW982sGt3vGyZm8ldOnBr65BtiEfHv/18xo0TlQj3AQwYQHVTP/M3ryCXdjtX9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790791469; c=relaxed/simple; bh=S9jr5pJ7AeJ1jU31Axk/LR2VufpKvSzDedQmAF+NOSE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mAYnHKg4Yr2kR+p64KnXPNE/KAYojpsILN1VdNSeNd1bsUvvzQqFuwz1OZFuYA+u/65ZOuTkngTi+wPLaFiUibhfuGxdBskCQ6YhIOsIsg4955/IIYi7kca4PBK7y4INiMAH8a0JSYpDOrerUqM7OhlJeaLIrPbOlXyzmrOFPvM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L28KCxIP; 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="L28KCxIP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C2E01F000FF; Wed, 30 Sep 2026 18:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790791468; bh=zGlf7rOY3YQ5It6RYXRhIocju2f4IGpIJco0XOXEVUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=L28KCxIPHQ4hiJ260G4FQyOAnlOpmcROGcCFW9CUn7RgWOW/s7hcZWhmY2H9OnJaB YESJa6cGff/610W+7XqXjOlDvG2WsoaeTZ3AR5NokTFJN5UryGns+kJy4zkUGfy8I0 WaX0bO5fndvIOhdHWZV1PD39StHYtiG8FKq+dxYA= 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 5.15 311/752] net/mlx5e: Fix ETS zero BW reporting when one TC holds 100% Date: Wed, 30 Sep 2026 17:23:01 +0200 Message-ID: <20260930152405.026909233@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152358.131179731@linuxfoundation.org> References: <20260930152358.131179731@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 5.15-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 4be89f0d020ea..d11ed0cd4b35b 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