From patchwork Sat Nov 12 10:21:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 13041143 X-Patchwork-Delegate: kuba@kernel.org 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 861CCC433FE for ; Sat, 12 Nov 2022 10:22:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234687AbiKLKWD (ORCPT ); Sat, 12 Nov 2022 05:22:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234562AbiKLKV7 (ORCPT ); Sat, 12 Nov 2022 05:21:59 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63B09183BF for ; Sat, 12 Nov 2022 02:21:58 -0800 (PST) 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 0C48E60B91 for ; Sat, 12 Nov 2022 10:21:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5981CC433D6; Sat, 12 Nov 2022 10:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668248517; bh=DwWiONPXYwwl4zUnNkjWhAbNGvVLcN//dL753+vJu4g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H4Hj940exa5P1FOseUEWhhBlLTFX8wDyAQtDCGRS9B9rkiYq+QKSewJoK5dwsTGAS z4YExz8C1xCnBfA9p0x1VbnEUZjMwkrxxdi/ObCBN9e2DO5NmYIh5d/fIylWXYDtfX Thu7glVfq++T2Pcol/lgSjBFcc9v52P9lSg3iRex0Ga3kEI1HwGZcKpJ2KxKOMi16P 6DkbjQ2ZNz2UJh0USb36I2qb5+w2afKO8DddEDzKv0Fng1FIp/zJjFhST49PxDd5PS x6H6oKMyhID8HNhGQzXxJWxvaJyXDBrM9dZbp1g/tsPG72uL8kvT0vtWb3t5hiQviQ HEXCy+sRK56bA== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Anisse Astier , Leon Romanovsky Subject: [net-next 05/15] net/mlx5e: remove unused list in arfs Date: Sat, 12 Nov 2022 02:21:37 -0800 Message-Id: <20221112102147.496378-6-saeed@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221112102147.496378-1-saeed@kernel.org> References: <20221112102147.496378-1-saeed@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Anisse Astier This is never used, and probably something that was intended to be used before per-protocol hash tables were chosen instead. Signed-off-by: Anisse Astier Reviewed-by: Leon Romanovsky Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c b/drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c index 0ae1865086ff..bed0c2d043e7 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c @@ -57,7 +57,6 @@ struct mlx5e_arfs_tables { struct arfs_table arfs_tables[ARFS_NUM_TYPES]; /* Protect aRFS rules list */ spinlock_t arfs_lock; - struct list_head rules; int last_filter_id; struct workqueue_struct *wq; }; @@ -376,7 +375,6 @@ int mlx5e_arfs_create_tables(struct mlx5e_flow_steering *fs, return -ENOMEM; spin_lock_init(&arfs->arfs_lock); - INIT_LIST_HEAD(&arfs->rules); arfs->wq = create_singlethread_workqueue("mlx5e_arfs"); if (!arfs->wq) goto err;