From nobody Fri Oct 24 20:20:09 2025 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 B58E0C00140 for ; Mon, 15 Aug 2022 21:23:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343500AbiHOVX3 (ORCPT ); Mon, 15 Aug 2022 17:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343599AbiHOVRF (ORCPT ); Mon, 15 Aug 2022 17:17:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2145D6270; Mon, 15 Aug 2022 12:20:24 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 0AA0C6009B; Mon, 15 Aug 2022 19:20:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F55EC433C1; Mon, 15 Aug 2022 19:20:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591223; bh=WJJZjSRsNAmFjH1N2BZiZSDeHE3N2TcBII3rUzJ6/LA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PxmB5ywAhRSZtWSDU5rkBrZvNi15AY4HzGI9GPXr6OnlKcItFLa9eAoPSK42JSqQn F5E4HcYw4O8U2L2U3/lt12/HOIB6p41Ihw2sxqNE400yNh0bv/ZFlr00MV+tHTRLnT +6w5M/OXcNwkA/gTMMWtPyDGAO9TfWQGytQSMjXI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maor Dickman , Roi Dayan , Saeed Mahameed , Sasha Levin Subject: [PATCH 5.18 0512/1095] net/mlx5e: TC, Fix post_act to not match on in_port metadata Date: Mon, 15 Aug 2022 19:58:31 +0200 Message-Id: <20220815180450.703036192@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Maor Dickman [ Upstream commit 903f2194f74bbd289f3170114035d472a36a8ab4 ] The cited commit changed CT to use multi table actions post act infrastruct= ure instead of using it own post act infrastructure, this broke decap during VF tunnel = offload (Stack devices) with CT due to wrong match on in_port metadata in the post = act table. This changed only broke VF tunnel offload because it modify the packet in_p= ort metadata to be VF metadata and it isn't propagate the post act creation. Fixed by modify post act rules to match only on fte_id and not match on in_= port metadata which isn't needed. Fixes: a81283263bb0 ("net/mlx5e: Use multi table support for CT and sample = actions") Signed-off-by: Maor Dickman Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c b/dri= vers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c index dea137dd744b..2b64dd557b5d 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c @@ -128,6 +128,7 @@ mlx5e_tc_post_act_add(struct mlx5e_post_act *post_act, = struct mlx5_flow_attr *at post_attr->inner_match_level =3D MLX5_MATCH_NONE; post_attr->outer_match_level =3D MLX5_MATCH_NONE; post_attr->action &=3D ~MLX5_FLOW_CONTEXT_ACTION_DECAP; + post_attr->flags |=3D MLX5_ATTR_FLAG_NO_IN_PORT; =20 handle->ns_type =3D post_act->ns_type; /* Splits were handled before post action */ --=20 2.35.1