From patchwork Tue Mar 14 08:58:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13173924 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7909BC6FD1C for ; Tue, 14 Mar 2023 08:59:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230268AbjCNI7M (ORCPT ); Tue, 14 Mar 2023 04:59:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbjCNI7K (ORCPT ); Tue, 14 Mar 2023 04:59:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A87592BEB for ; Tue, 14 Mar 2023 01:59:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EC924B818B8 for ; Tue, 14 Mar 2023 08:59:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 028DCC433D2; Tue, 14 Mar 2023 08:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678784345; bh=3WnwZ8XK7rc+0y8BGe40gQK/z0cAyBLb12XUbQ4R8gs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F/F7srCnzCXeI1sBhzAXmHjYcoKQCt7kme+VUoR6oS5YNhLCDchr/i8az90Xd8XFC zhs17BmXwGufZ1grkzY4iKzJHhIpr4X2i5dNDbp/O6h9z1WKKNBhFy+0esrxrcNArZ J2kwUuto1H0QjIf7Bm2sle6thGP3Z68Q49WNL5az7WuBvDgiQNpIq4J9G1xxHeLvou BFOZlArIWdUzi4TzVToMKFKJuTzfEAxS9APBYK3tEVjPlSZNaA1mmRcIsvdFNOG19I /f3nO4wm4MLcban6TgDJlg7m+bzZH+h5NIK68d7mTzrLlG1uzeTH9lkoLdReDKP3WY hJqHCkWmND6MA== From: Leon Romanovsky To: Steffen Klassert Cc: Paul Blakey , "David S. Miller" , Eric Dumazet , Herbert Xu , Jakub Kicinski , netdev@vger.kernel.org, Paolo Abeni , Saeed Mahameed , Raed Salem Subject: [PATCH xfrm-next 2/9] net/mlx5: fs_core: Allow ignore_flow_level on TX dest Date: Tue, 14 Mar 2023 10:58:37 +0200 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Paul Blakey ignore_flow_level is also supported by firmware on TX, remove this limitation. Signed-off-by: Paul Blakey Reviewed-by: Raed Salem Reviewed-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c index 731acbe22dc7..3ade166073fa 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c @@ -1762,7 +1762,8 @@ static bool dest_is_valid(struct mlx5_flow_destination *dest, if (ignore_level) { if (ft->type != FS_FT_FDB && - ft->type != FS_FT_NIC_RX) + ft->type != FS_FT_NIC_RX && + ft->type != FS_FT_NIC_TX) return false; if (dest->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE &&