]> git.ipfire.org Git - thirdparty/linux.git/commit
eth: mlx5: expose NETIF_F_NTUPLE when ARFS is compiled out
authorJakub Kicinski <kuba@kernel.org>
Thu, 11 Jul 2024 22:37:22 +0000 (15:37 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jul 2024 22:51:21 +0000 (15:51 -0700)
commit3771266bf8418904794175fdc83aaf4732114cba
treeda43a5d6bb1057dd675c52655dc4a161aa77b176
parent464b99e77b3d024a319db0dabe917d04824039db
eth: mlx5: expose NETIF_F_NTUPLE when ARFS is compiled out

ARFS depends on NTUPLE filters, but the inverse is not true.
Drivers which don't support ARFS commonly still support NTUPLE
filtering. mlx5 has a Kconfig option to disable ARFS (MLX5_EN_ARFS)
and does not advertise NTUPLE filters as a feature at all when ARFS
is compiled out. That's not correct, ntuple filters indeed still work
just fine (as long as MLX5_EN_RXNFC is enabled).

This is needed to make the RSS test not skip all RSS context
related testing.

Acked-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://patch.msgid.link/20240711223722.297676-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c