linux/drivers/net/ethernet/broadcom/bnxt
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
..
bnxt.c bnxt_en: Add support for UDP GSO on 5760X chips 2023-12-12 16:05:58 -08:00
bnxt.h bnxt_en: Add support for UDP GSO on 5760X chips 2023-12-12 16:05:58 -08:00
bnxt_coredump.c
bnxt_coredump.h
bnxt_dcb.c bnxt_en: Fix W=stringop-overflow warning in bnxt_dcb.c 2023-08-08 15:07:18 -07:00
bnxt_dcb.h eth: bnxt: fix warning for define in struct_group 2023-07-28 13:47:34 -07:00
bnxt_debugfs.c
bnxt_debugfs.h
bnxt_devlink.c bnxt_en: Rename some macros for the P5 chips 2023-11-21 17:32:49 -08:00
bnxt_devlink.h
bnxt_dim.c
bnxt_ethtool.c net: ethtool: pass a pointer to parameters to get/set_rxfh ethtool ops 2023-12-13 22:07:16 -08:00
bnxt_ethtool.h
bnxt_fw_hdr.h
bnxt_hsi.h bnxt_en: Update firmware interface to 1.10.3.15 2023-12-04 15:12:47 -08:00
bnxt_hwmon.c bnxt_en: Do not call sleeping hwmon_notify_event() from NAPI 2023-10-22 11:41:45 +01:00
bnxt_hwmon.h bnxt_en: Do not call sleeping hwmon_notify_event() from NAPI 2023-10-22 11:41:45 +01:00
bnxt_hwrm.c eth: bnxt: fix backward compatibility with older devices 2023-10-17 17:50:55 -07:00
bnxt_hwrm.h eth: bnxt: fix backward compatibility with older devices 2023-10-17 17:50:55 -07:00
bnxt_nvm_defs.h
bnxt_ptp.c bnxt_en: Make PTP TX timestamp HWRM query silent 2023-12-12 16:05:59 -08:00
bnxt_ptp.h bnxt_en: Skip nic close/open when configuring tstamp filters 2023-12-12 16:05:58 -08:00
bnxt_sriov.c bnxt_en: Rename some macros for the P5 chips 2023-11-21 17:32:49 -08:00
bnxt_sriov.h
bnxt_tc.c net: bnxt: fix a potential use-after-free in bnxt_init_tc 2023-12-05 19:43:42 -08:00
bnxt_tc.h
bnxt_ulp.c bnxt_en: Consolidate DB offset calculation 2023-12-04 15:12:47 -08:00
bnxt_ulp.h bnxt_en: Consolidate DB offset calculation 2023-12-04 15:12:47 -08:00
bnxt_vfr.c bnxt_en: Link representors to PCI device 2023-06-21 14:07:09 -07:00
bnxt_vfr.h bnxt_en: Allow to set switchdev mode without existing VFs 2023-04-13 11:04:51 +02:00
bnxt_xdp.c bnxt_en: Fix TX ring indexing logic 2023-12-12 16:05:57 -08:00
bnxt_xdp.h bnxt: don't handle XDP in netpoll 2023-07-31 14:28:39 -07:00
Makefile bnxt_en: Move hwmon functions into a dedicated file 2023-10-04 11:23:01 +01:00