Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3060889rwb; Mon, 15 Aug 2022 17:09:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ZYPMDU7ivoxyqKM7BsRVpCnWTpLhpiQgMd84Z3YKtLQmJts9NKGS0J3AGjoZ49U07pDAa X-Received: by 2002:a17:906:4790:b0:738:4c1c:ec60 with SMTP id cw16-20020a170906479000b007384c1cec60mr4935562ejc.523.1660608586525; Mon, 15 Aug 2022 17:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660608586; cv=none; d=google.com; s=arc-20160816; b=hwehyqhACsr27xuw1HiBmh8X+ZkdcZ8T2kM+n0FMUTMEF7zvfJE2U2+Pp6fEpDNjqm e25XXkAUFwVcI5XAsaKa7kwAO9bMIQug0iVn6ksNf+GRBEHO3TqCvQ8a44e+JirMdrWR teRBJ6fYdPWCA77w8kRUwPeohlG+kBnkcPiQShCpwBPFT1NSeiiOq2S0lOj1O7EObOnE 74OTyGHFWR/PSn2+GaSVoc1TSGQJjHod5e0iNubxYL+k3LQRl9EfH4xBN2IiZPu69xcg S8e2ZWGP8DpEaL83WEpJaD/lcHllBz2tMTmDRhz8yZsAnFqSdrQOguVIDL/H41hfU4uU iN7Q== 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=XJhpQ320aDpzi5TBdPGrT1sIvbmBiA+9hzJQG0liQW/PNNuv05HctMa0VoG3WT1sYN pwMlq9wBU4vaWG3v86jvFbsS7WxE9PYbneaaWzEusHkbhlkfQ/+Ev37byf+fztKM4Zlh 64TpPc5HBpqLm62nm1bPLRTzWiITNqXzFZoJEvU1VlbywOiBQwjHCL7UFN3XbTeQER8e TeGW6Q258G8QkDCsvhCfiQPrW02vCxnNZ6eMUg0MgQKJ25DZfpYReHD1QfBGHjKjhlfq tMlOOgTcf6fdP+gyHBNaz5L4XCXSyoWeQZnlasxesWVc6ffO7rPVH0FNonRq7S/FAS2G pflw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HRMz+9nm; 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 gs44-20020a1709072d2c00b0072b02ef4ae9si9894138ejc.618.2022.08.15.17.09.17; Mon, 15 Aug 2022 17:09:46 -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=HRMz+9nm; 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 S1353494AbiHPAGF (ORCPT + 99 others); Mon, 15 Aug 2022 20:06:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355295AbiHOX6Q (ORCPT ); Mon, 15 Aug 2022 19:58:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE3C164420; Mon, 15 Aug 2022 13:20:11 -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 41C94B80EB1; Mon, 15 Aug 2022 20:20:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DED2C433C1; Mon, 15 Aug 2022 20:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594808; bh=WJJZjSRsNAmFjH1N2BZiZSDeHE3N2TcBII3rUzJ6/LA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HRMz+9nmz/s75Xfwg7XeGHiIv9qD9w9ZOOU1bh9aJ4awTNnY5mORWmGvElg3X9J4M 1bM30SI4mn0rrR17pJlCkO+tBrWQFWrQRwzD1sAVYbJr8+Ump2RitVaXuMD4PzPcaS wC0z6wUEM5yLg7GdAwHlyFid5iMtppgsKyDd/wjs= 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.19 0548/1157] net/mlx5e: TC, Fix post_act to not match on in_port metadata Date: Mon, 15 Aug 2022 19:58:24 +0200 Message-Id: <20220815180501.568814195@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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