From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28E1014AAE for ; Mon, 24 Jul 2023 22:44:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAA3AC433BC; Mon, 24 Jul 2023 22:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690238680; bh=VKVDDMnSZY+wpuwtcjlgYAzglkIpX3rdSsUefgu+PZM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MH0VX52RNFouKgsSSnRvXvVN6IbkI0Na5UdaI9LYPKuxsVGJSICaXX8ziYJznUUCU Fur29NPvlzykSbuftEHTZTJWq5e+g9AXx7GWemIdgmmH0qM4o3ksFRCb36u1Szgc0K oDTTdY6omu9i+5GqZsO+bf44JyGWHhqYprHiTupxHuMFMMj+Www+oA8MColKqqSral 5OSVQceI+L1oca4GZ+x4jgazkmlfTmcb2a4MpLK2K5gzcsxHxV8kOqZPTCaOYYDn1z hswgZafSOFWQhnmmcG57ggG0eBvu3g7teoc8tMtFUZTC+TAL5e1dQuRjQGJFQuLz9y kTpRsYnbqyWqg== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Parav Pandit , Roi Dayan Subject: [net-next 11/14] net/mlx5e: Remove duplicate code for user flow Date: Mon, 24 Jul 2023 15:44:23 -0700 Message-ID: <20230724224426.231024-12-saeed@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230724224426.231024-1-saeed@kernel.org> References: <20230724224426.231024-1-saeed@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Parav Pandit Flow table and priority detection is same for IP user flows and other L4 flows. Hence, use same code for all these flow types. Signed-off-by: Parav Pandit Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c index aac32e505c14..08eb186615c8 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c @@ -96,10 +96,6 @@ static struct mlx5e_ethtool_table *get_flow_table(struct mlx5e_priv *priv, case UDP_V4_FLOW: case TCP_V6_FLOW: case UDP_V6_FLOW: - max_tuples = ETHTOOL_NUM_L3_L4_FTS; - prio = MLX5E_ETHTOOL_L3_L4_PRIO + (max_tuples - num_tuples); - eth_ft = ðtool->l3_l4_ft[prio]; - break; case IP_USER_FLOW: case IPV6_USER_FLOW: max_tuples = ETHTOOL_NUM_L3_L4_FTS; -- 2.41.0