]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Improve ethtool rxnfc callback structure
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 25 Jun 2019 18:17:18 +0000 (11:17 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 29 Jul 2019 23:40:23 +0000 (16:40 -0700)
commit5ff7d3bce7a4d3ca943ee653450ec48835d6beda
tree41dce5e45567e55d5d9f7d3d8274dc159458b092
parent335db99f5047105a79a046b020bd0f47ee8c12f7
net/mlx5e: Improve ethtool rxnfc callback structure

Don't choose who implements the rxnfc "get/set" callbacks according to
CONFIG_MLX5_EN_RXNFC, instead have the callbacks always available and
delegate to a function of a different driver module when needed
(en_fs_ethtool.c), have stubs in en/fs.h to fallback to when
en_fs_ethtool.c is compiled out, to avoid complications and ifdefs in
en_main.c.

Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
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_ethtool.c