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 0C38E441638; Thu, 30 Jul 2026 14:35:40 +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=1785422141; cv=none; b=U9SDonBX7lK/E+B9F51nZQy4fMBsfuNzhkrNYLiUJO4cXHes0j2CTEtwgauxD/TgwfZn0Ll78JdtVDx+EyrwJCT9PsUoepPtaNgPldnsK9wLUmaTwNSkSaaABJ9qO7DaKfm00rcIzhr3Aoxx65mI7xohYORc4svrpDAIB6HFlbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785422141; c=relaxed/simple; bh=0vN0Qau4tXS9zSbcJDpCUeuiW8KYgqsTg6DDt1DSEfM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gJ7Xsvm6Kpu46MZ2d7tMumgvVcAte9Vrp6SDt6+ICPb161j1B0qqUmm97NMQgTmgaiPCELnU3eBsRoBbUNwpK5ZpV7A+hce1qj/KYd8bj8kSwFDNvz/p1vLLEBZdscXoxeYW93lCNIuTb0DDhypoGtHungawyr1aNYHPxFZuQcI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XulFRiCR; 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="XulFRiCR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FB4F1F00A3A; Thu, 30 Jul 2026 14:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785422139; bh=tn9Bs6bo9CetquEkhU24Uss2Zd9XuMhB6J0SEXHg78I=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XulFRiCRkj9LDM/yGqIGmtVtKVYOrflGfs3VcbOgTVcmoQyKnkZ1D7xpVOW00En7D O4Vb4LgZHcBKoi1EOSJV9SpIInjuakdfzrk/YHA38MRl+t+41qq//7uoio44vGn+wR ituaFFdxkv+5VHz00wvduCFjvEtw8XenACIcZncA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexei Lazar , Carolina Jubran , Tariq Toukan , Pavan Chebbi , Jakub Kicinski , Sasha Levin Subject: [PATCH 7.1 338/744] net/mlx5e: Reject unsupported CB Shaper TSA in ETS validation Date: Thu, 30 Jul 2026 16:10:11 +0200 Message-ID: <20260730141451.467693866@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141444.267951807@linuxfoundation.org> References: <20260730141444.267951807@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 7.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexei Lazar [ Upstream commit 9173e1d3c7c7d49a71eee813091f9e834ec7cee5 ] Credit Based (CB) TSA is not supported by the mlx5 driver, so reject any configurations that specify it. Fixes: 08fb1dacdd76 ("net/mlx5e: Support DCBNL IEEE ETS") Signed-off-by: Alexei Lazar Reviewed-by: Carolina Jubran Signed-off-by: Tariq Toukan Reviewed-by: Pavan Chebbi Link: https://patch.msgid.link/20260717075125.1244877-3-tariqt@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c b/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c index 762f0a46c12097..00e706e1ede111 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c @@ -324,6 +324,14 @@ static int mlx5e_dbcnl_validate_ets(struct net_device *netdev, } } + for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { + if (ets->tc_tsa[i] == IEEE_8021QAZ_TSA_CB_SHAPER) { + netdev_err(netdev, + "Failed to validate ETS: CB Shaper is not supported\n"); + return -EOPNOTSUPP; + } + } + /* Validate Bandwidth Sum */ for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { if (ets->tc_tsa[i] == IEEE_8021QAZ_TSA_ETS) { -- 2.53.0