From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5AFD1156641; Mon, 16 Sep 2024 12:05:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726488333; cv=none; b=SWP3pGnkXlnF5+gQ+4I9q7ecmLNVc3PYqcNHGNTqi4bVS1zmB68tW6/8Oo5RZ2cGXdDlzFgb5g4wATVRTuNOqO5frMoLs7aLvVsl3z/tX1hNx8oWS5yXk3iQ+rQqsRDoyiHFalfsBC/0SN10dgCZz167Ee6Avl/T2czjBnoAkFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726488333; c=relaxed/simple; bh=A/oRCxhacOy3vMFASpp8Y/jnERMVITTzRg9vN9aqYmI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sSrDdMN46lhMQDb0muBJTqCbfQRLnvQqvXfwK+iT3xXtLaCC06CXyGc6JD7yYezi+Tr2hS03gb1kSp6ki8tq5sC1EtjdqZqc8O2dt4eqgme9fzJa3dOanSCBouet5JNFyux6L3rHhxsFoDwQE3PFHO5kOGxHgRqomih91Av59aQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zgZD8nwc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="zgZD8nwc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA010C4CECE; Mon, 16 Sep 2024 12:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726488333; bh=A/oRCxhacOy3vMFASpp8Y/jnERMVITTzRg9vN9aqYmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zgZD8nwcJvXV4L+J0U9EcWr7c/LXb8WJtMcKTmIu4zpgpsji5VUi2wCL7TwBGOEpT snNuBwzEmRNU/eFLcHprWTGjcpyQQNcayWjdFBewswuK5lA9EZ63EGaQhvB3C1p2xO 9m70Jb78IaKtyu5S16uCqDkBM3IPZ9HObLwp1yR4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shahar Shitrit , Tariq Toukan , Carolina Jubran , Saeed Mahameed , Sasha Levin Subject: [PATCH 6.10 077/121] net/mlx5e: Add missing link modes to ptys2ethtool_map Date: Mon, 16 Sep 2024 13:44:11 +0200 Message-ID: <20240916114231.711385356@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240916114228.914815055@linuxfoundation.org> References: <20240916114228.914815055@linuxfoundation.org> User-Agent: quilt/0.67 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.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shahar Shitrit [ Upstream commit 7617d62cba4a8a3ff3ed3fda0171c43f135c142e ] Add MLX5E_1000BASE_T and MLX5E_100BASE_TX to the legacy modes in ptys2legacy_ethtool_table, since they were missing. Fixes: 665bc53969d7 ("net/mlx5e: Use new ethtool get/set link ksettings API") Signed-off-by: Shahar Shitrit Reviewed-by: Tariq Toukan Reviewed-by: Carolina Jubran Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c index 58eb96a68853..5b3b442c4a58 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c @@ -139,6 +139,10 @@ void mlx5e_build_ptys2ethtool_map(void) ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT); MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_100GBASE_LR4, legacy, ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT); + MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_100BASE_TX, legacy, + ETHTOOL_LINK_MODE_100baseT_Full_BIT); + MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_1000BASE_T, legacy, + ETHTOOL_LINK_MODE_1000baseT_Full_BIT); MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_10GBASE_T, legacy, ETHTOOL_LINK_MODE_10000baseT_Full_BIT); MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_25GBASE_CR, legacy, -- 2.43.0