From: Maor Gottlieb <ma...@mellanox.com> en_arfs.o should be compiled only if both CONFIG_MLX5_CORE_EN and CONFIG_RFS_ACCEL are enabled. Add MLX5_CORE_EN_RFS Kconfig that depends on both of them.
Fixes: 1cabe6b0965e ('net/mlx5e: Create aRFS flow tables') Reported-by: Alexei Starovoitov <alexei.starovoi...@gmail.com> Signed-off-by: Maor Gottlieb <ma...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 8 ++++++++ drivers/net/ethernet/mellanox/mlx5/core/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig index 1cf722e..69095d5 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig +++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig @@ -31,3 +31,11 @@ config MLX5_CORE_EN_DCB This flag is depended on the kernel's DCB support. If unsure, set to Y + +config MLX5_CORE_EN_RFS + bool "Accelerated RFS (aRFS) Support" + default y + depends on MLX5_CORE_EN && RFS_ACCEL + ---help--- + Say Y here if you want to use accelerated RFS (aRFS) in the + driver. diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/Makefile index 679e18f..1840346 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/Makefile +++ b/drivers/net/ethernet/mellanox/mlx5/core/Makefile @@ -9,4 +9,4 @@ mlx5_core-$(CONFIG_MLX5_CORE_EN) += wq.o eswitch.o \ en_txrx.o en_clock.o vxlan.o en_tc.o mlx5_core-$(CONFIG_MLX5_CORE_EN_DCB) += en_dcbnl.o -mlx5_core-$(CONFIG_RFS_ACCEL) += en_arfs.o +mlx5_core-$(CONFIG_MLX5_CORE_EN_RFS) += en_arfs.o -- 2.8.0