Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2938010rwb; Mon, 15 Aug 2022 14:26:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR7r/8F1N8D3rHS0f/15nkKcFy23tMo2QgBgheJPz9yyjMaw+X3QdX0VTIrxfR5VL+gDjzwJ X-Received: by 2002:a17:906:5d0b:b0:731:3310:4188 with SMTP id g11-20020a1709065d0b00b0073133104188mr11765997ejt.208.1660598778950; Mon, 15 Aug 2022 14:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598778; cv=none; d=google.com; s=arc-20160816; b=WwX0rfVA0Y3HQKXk7lC2Z3RgPWrlXKUw3dqvjF3QmCOVp8qdun9eo3qVbcVpPEk0qG +hqRGcDtZTjtFyM3CHQic5uvHr+vz6H3sU1vCL1SnpxXrs7NGsemfkQ+AlZ2aPoYDfdw OGKr6ZkmZYXfD5ztJ70JPTtLTPO/HiWofDRU9Qb00r4BIJyWfXz1qQONmMbilujXLhkj SkCp8C9nmIKHcdHozxiZO5kmuvVm9bnaWEGf8WSjt4sxYJaiatxUVYyrT5x/9mBdY5ke /uIh+kr9bVCLuZ6Sa2EgRDK38Wr3T6bCqzxPsK/b53vh2M92pt9/CDVOFZZODnMOIKbq av1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QvdkmVoPhl3FnLM2tXAF3k2bqRhjFdrWtWKGt6Wu2EE=; b=WD81gP/2w9aph45ikAiwFccXmUkDWtILB2aXJoQsigs1xMRA6HRcYswZJLwNtRxCpr c6Q01TThfVPVBLAfEkWwiaZQBmkwDtqNhqqBFga7Ygp9XicxukcA78iYzdRABtvMyzJb /xOlYIa53h/n/66emYIZMnPeOF06saLjlnLYL0RVOdarp7FjnYvUe2sGZMuxLsr6937t 9mfXQfkvNjHNQYtThd0czQOLURHH+IkyJoD5u3H4QFs2RXXUgUbxGwA7u3ZhjjarKhQ+ R55pbYdIJLmdWzoGQMcwlwxPGiZ39AthPGWi4Ym6yyOA+xelAXbzmdh6N0oVVG/5iq9M 7vuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PxmB5ywA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa24-20020a1709076d1800b007318692f59csi8547491ejc.935.2022.08.15.14.25.40; Mon, 15 Aug 2022 14:26:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PxmB5ywA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245528AbiHOVX2 (ORCPT + 99 others); Mon, 15 Aug 2022 17:23:28 -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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maor Dickman [ Upstream commit 903f2194f74bbd289f3170114035d472a36a8ab4 ] The cited commit changed CT to use multi table actions post act infrastructure 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_port 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/drivers/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 = MLX5_MATCH_NONE; post_attr->outer_match_level = MLX5_MATCH_NONE; post_attr->action &= ~MLX5_FLOW_CONTEXT_ACTION_DECAP; + post_attr->flags |= MLX5_ATTR_FLAG_NO_IN_PORT; handle->ns_type = post_act->ns_type; /* Splits were handled before post action */ -- 2.35.1