From mboxrd@z Thu Jan 1 00:00:00 1970 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 63EF4C6FD1F for ; Tue, 14 Mar 2023 17:50:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230266AbjCNRuN (ORCPT ); Tue, 14 Mar 2023 13:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbjCNRt7 (ORCPT ); Tue, 14 Mar 2023 13:49:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91DA18F53D for ; Tue, 14 Mar 2023 10:49:58 -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 21F066187D for ; Tue, 14 Mar 2023 17:49:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76518C4339C; Tue, 14 Mar 2023 17:49:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678816197; bh=QDZwZeC/hVIfHW6hUnvSHSN6t4xBNVfG+HH6glUzg0A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A7ORFXzOmDOZmTieubXqDIcTYIw94GgPDVwDQo7KfGDWJClcxDAANJIQKF6aDHvG6 AETK0IpUfQj+bZV4delolHBcNhrQSGPCkIrQjb0BA52B2Z0hws9GPWqcHgh30CU5fN hZv2ZAxGZE+UOmLd+3t1hRF4AWHTkiNpXPelyhg7yUmsm5STcuI2hWCPYoo497tuAY 48UwM8frkXefr07Q2HBguO0wucn+ng3zHInpGCsrU2IeMiF1QymCnFdgM6b5YNkFYO ZT/8JakazzN3An15TESfcHIh6FOKEnGXEwViXFse9l858OgedrPRED95ltNPyw5fuI k8MtcpSwPorzg== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Oz Shlomo , Paul Blakey Subject: [net 13/14] net/mlx5e: TC, fix cloned flow attribute Date: Tue, 14 Mar 2023 10:49:39 -0700 Message-Id: <20230314174940.62221-14-saeed@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230314174940.62221-1-saeed@kernel.org> References: <20230314174940.62221-1-saeed@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Oz Shlomo Currently the cloned flow attr resets the original tc action cookies count. Fix that by resetting the cloned flow attribute. Fixes: cca7eac13856 ("net/mlx5e: TC, store tc action cookies per attr") Signed-off-by: Oz Shlomo Reviewed-by: Paul Blakey Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index d2e191ee0704..6bfed633343a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -3752,7 +3752,7 @@ mlx5e_clone_flow_attr_for_post_act(struct mlx5_flow_attr *attr, parse_attr->filter_dev = attr->parse_attr->filter_dev; attr2->action = 0; attr2->counter = NULL; - attr->tc_act_cookies_count = 0; + attr2->tc_act_cookies_count = 0; attr2->flags = 0; attr2->parse_attr = parse_attr; attr2->dest_chain = 0; -- 2.39.2