mirror_ubuntu-kernels/drivers/net/ethernet/intel/idpf
Ahmed Zaki fb6e30a725 net: ethtool: pass a pointer to parameters to get/set_rxfh ethtool ops
The get/set_rxfh ethtool ops currently takes the rxfh (RSS) parameters
as direct function arguments. This will force us to change the API (and
all drivers' functions) every time some new parameters are added.

This is part 1/2 of the fix, as suggested in [1]:

- First simplify the code by always providing a pointer to all params
   (indir, key and func); the fact that some of them may be NULL seems
   like a weird historic thing or a premature optimization.
   It will simplify the drivers if all pointers are always present.

 - Then make the functions take a dev pointer, and a pointer to a
   single struct wrapping all arguments. The set_* should also take
   an extack.

Link: https://lore.kernel.org/netdev/20231121152906.2dd5f487@kernel.org/ [1]
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Suggested-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
Link: https://lore.kernel.org/r/20231213003321.605376-2-ahmed.zaki@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-12-13 22:07:16 -08:00
..
idpf_controlq_api.h idpf: add controlq init and reset checks 2023-09-13 14:59:23 -07:00
idpf_controlq_setup.c idpf: add controlq init and reset checks 2023-09-13 14:59:23 -07:00
idpf_controlq.c idpf: add controlq init and reset checks 2023-09-13 14:59:23 -07:00
idpf_controlq.h idpf: add controlq init and reset checks 2023-09-13 14:59:23 -07:00
idpf_dev.c idpf: initialize interrupts and enable vport 2023-09-13 14:59:24 -07:00
idpf_devids.h
idpf_ethtool.c net: ethtool: pass a pointer to parameters to get/set_rxfh ethtool ops 2023-12-13 22:07:16 -08:00
idpf_lan_pf_regs.h idpf: initialize interrupts and enable vport 2023-09-13 14:59:24 -07:00
idpf_lan_txrx.h idpf: add singleq start_xmit and napi poll 2023-09-13 14:59:24 -07:00
idpf_lan_vf_regs.h idpf: initialize interrupts and enable vport 2023-09-13 14:59:24 -07:00
idpf_lib.c idpf: add get/set for Ethtool's header split ringparam 2023-12-13 18:22:06 -08:00
idpf_main.c idpf: add SRIOV support and other ndo_ops 2023-09-13 14:59:24 -07:00
idpf_mem.h idpf: add controlq init and reset checks 2023-09-13 14:59:23 -07:00
idpf_singleq_txrx.c idpf: add singleq start_xmit and napi poll 2023-09-13 14:59:24 -07:00
idpf_txrx.c idpf: add get/set for Ethtool's header split ringparam 2023-12-13 18:22:06 -08:00
idpf_txrx.h idpf: add SRIOV support and other ndo_ops 2023-09-13 14:59:24 -07:00
idpf_vf_dev.c idpf: initialize interrupts and enable vport 2023-09-13 14:59:24 -07:00
idpf_virtchnl.c idpf: add get/set for Ethtool's header split ringparam 2023-12-13 18:22:06 -08:00
idpf.h idpf: add get/set for Ethtool's header split ringparam 2023-12-13 18:22:06 -08:00
Makefile idpf: add ethtool callbacks 2023-09-13 14:59:24 -07:00
virtchnl2_lan_desc.h
virtchnl2.h