From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 3/3] net/mlx5e: don't build RFS without ethernet Date: Wed, 04 May 2016 16:23:19 +0200 Message-ID: <6481938.m1ihicFdKr@wuerfel> References: <1462364774-3792510-1-git-send-email-arnd@arndb.de> <1462365155-3861405-1-git-send-email-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: Sender: netdev-owner@vger.kernel.org To: Saeed Mahameed Cc: Matan Barak , Leon Romanovsky , Saeed Mahameed , Linux Netdev List , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Matthew Finlay , Richard Cochran , Amir Vadai , Haggai Abramonvsky , Maor Gottlieb , Or Gerlitz , Majd Dibbiny List-Id: linux-rdma@vger.kernel.org On Wednesday 04 May 2016 16:09:16 Saeed Mahameed wrote: > On Wed, May 4, 2016 at 3:32 PM, Arnd Bergmann wrote: > > The RFS acceleration support in mlx5 is enabled whenever CONFIG_RFS_ACCEL > > is in use. However, this fails if a user turns off CONFIG_MLX5_CORE_EN, > > because the rfs code now calls into the ethernet portion of the > > driver: > > > > ERROR: "mlx5e_destroy_flow_table" [drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko] undefined! > > > > Hi Arnd, > > We already posted a fix for this, please see "[PATCH net-next V1 > 01/12] net/mlx5e: Fix aRFS compilation dependency", and give us your > feedback. That version looks fine as well. I think it's better to be a little more explicit as I was, but either way seems fine. You can also achieve the same thing in yet another way using Makefile syntax instead of cpp or Kconfig: ifdef CONFIG_MLX5_CORE_EN mlx5_core-y += wq.o eswitch.o \ en_main.o en_fs.o en_ethtool.o en_tx.o en_rx.o \ en_txrx.o en_clock.o vxlan.o en_tc.o en_txrx.o en_clock.o vxlan.o en_tc.o en_arfs.o mlx5_core-$(CONFIG_RFS_ACCEL) += en_arfs.o endif If you prefer Maor's version, feel free to add Acked-by: Arnd Bergmann Arnd