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 2374E33CCD for ; Tue, 14 Nov 2023 21:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SLWsiFKi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4639C433C7; Tue, 14 Nov 2023 21:59:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699999141; bh=ISJcsiIbYTq9C0L3f/fQS5ndWgoPq5kRlXGYJju5rnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SLWsiFKitAC9rdzwFiRNnx4FhHigQ3FRq1tn1kdgYMcMXXNBXBhdW4epf5LowD81q EiwYclW89P2CFkU89DkmRZj/B1ksIDF9xUbClMUuGVwTmQM3vDjnwq7LkNzTULiFhm yTrhd7D3xjbg/tpM+XTdRMFu2fvcsJGUoNqCJVfb+Vacm7gJgg/M5Q9ubEMUddyVdC 4va/bf5j08R9yJybjSN8fgSnIdX+qq7QhxR7GfYP/4X++xW6dOQf6jQjg2oOp3+6ob al1FWuIhf8VKBbmxN+ZByNiIn847WlVakH6+ukH5X25OCeQzOWrh6d/cuvoPsbOBcu i31KgkOH/hOhQ== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Erez Shitrit , Yevgeny Kliteynik Subject: [net V2 03/15] net/mlx5: DR, Allow old devices to use multi destination FTE Date: Tue, 14 Nov 2023 13:58:34 -0800 Message-ID: <20231114215846.5902-4-saeed@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231114215846.5902-1-saeed@kernel.org> References: <20231114215846.5902-1-saeed@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Erez Shitrit The current check isn't aware of old devices that don't have the relevant FW capability. This patch allows multi destination FTE in old cards, as it was before this check. Fixes: f6f46e7173cb ("net/mlx5: DR, Add check for multi destination FTE") Signed-off-by: Erez Shitrit Reviewed-by: Yevgeny Kliteynik Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c index 6ea88a581804..e3ec559369fa 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c @@ -57,7 +57,8 @@ static const char *dr_action_id_to_str(enum mlx5dr_action_type action_id) static bool mlx5dr_action_supp_fwd_fdb_multi_ft(struct mlx5_core_dev *dev) { - return (MLX5_CAP_ESW_FLOWTABLE(dev, fdb_multi_path_any_table_limit_regc) || + return (MLX5_CAP_GEN(dev, steering_format_version) < MLX5_STEERING_FORMAT_CONNECTX_6DX || + MLX5_CAP_ESW_FLOWTABLE(dev, fdb_multi_path_any_table_limit_regc) || MLX5_CAP_ESW_FLOWTABLE(dev, fdb_multi_path_any_table)); } -- 2.41.0