OpenCloudOS-Kernel/drivers/net/ethernet/mellanox/mlx5/core
Jacob Keller b44cfd4f5b devlink: move request_firmware out of driver
All drivers which implement the devlink flash update support, with the
exception of netdevsim, use either request_firmware or
request_firmware_direct to locate the firmware file. Rather than having
each driver do this separately as part of its .flash_update
implementation, perform the request_firmware within net/core/devlink.c

Replace the file_name parameter in the struct devlink_flash_update_params
with a pointer to the fw object.

Use request_firmware rather than request_firmware_direct. Although most
Linux distributions today do not have the fallback mechanism
implemented, only about half the drivers used the _direct request, as
compared to the generic request_firmware. In the event that
a distribution does support the fallback mechanism, the devlink flash
update ought to be able to use it to provide the firmware contents. For
distributions which do not support the fallback userspace mechanism,
there should be essentially no difference between request_firmware and
request_firmware_direct.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Shannon Nelson <snelson@pensando.io>
Acked-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-11-19 21:40:57 -08:00
..
accel net/mlx5: IPsec: make spdxcheck.py happy 2020-09-16 14:34:32 +02:00
diag net/mlx5: Add support for fw live patch event 2020-10-09 12:06:53 -07:00
en Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
en_accel Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
esw net/mlx5: E-switch, Move devlink eswitch ports closer to eswitch 2020-09-30 21:26:29 -07:00
fpga net/mlx5: Cleanup kernel-doc warnings 2020-11-05 12:09:31 -08:00
ipoib RDMA/mlx5: Delete duplicated mlx5_ptys_width enum 2020-09-17 19:33:03 +03:00
lib net/mlx5e: Fix VXLAN synchronization after function reload 2020-11-05 12:17:06 -08:00
steering net/mlx5: DR, Free unused buddy ICM memory 2020-11-05 12:09:30 -08:00
Kconfig net/mlx5: IPsec: Add HW crypto offload support 2020-07-16 16:36:44 -07:00
Makefile net/mlx5: DR, Add buddy allocator utilities 2020-11-05 12:09:29 -08:00
alloc.c net/mlx5: Use dma device access helper 2020-09-30 21:26:30 -07:00
cmd.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
cq.c net: mlx: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
debugfs.c net/mlx5: cmd: Fix memset with byte count warning 2020-05-29 21:20:21 -07:00
dev.c net/mlx5: Simplify mlx5_register_device to return void 2020-03-25 23:19:13 -07:00
devlink.c devlink: move request_firmware out of driver 2020-11-19 21:40:57 -08:00
devlink.h net/mlx5e: Add devlink fdb_large_groups parameter 2020-02-27 16:40:19 -08:00
ecpf.c net/mlx5: simplify the return expression of mlx5_ec_init() 2020-09-23 15:44:39 -07:00
ecpf.h
en.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
en_arfs.c net/mlx5e: API to manipulate TTC rules destinations 2020-06-27 14:00:18 -07:00
en_common.c net/mlx5e: Add support for PCI relaxed ordering 2020-07-28 02:37:49 -07:00
en_dcbnl.c net/mlx5e: Fix port buffers cell size value 2020-07-09 19:27:07 -07:00
en_dim.c
en_ethtool.c net/mlx5e: Validate stop_room size upon user input 2020-11-05 12:09:30 -08:00
en_fs.c net/mlx5e: Fix VLAN create flow 2020-10-02 10:59:58 -07:00
en_fs_ethtool.c xsk: i40e: ice: ixgbe: mlx5: Pass buffer pool to driver instead of umem 2020-08-31 21:15:03 +02:00
en_main.c Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-12 16:54:48 -08:00
en_rep.c net/mlx5: E-switch, Move devlink eswitch ports closer to eswitch 2020-09-30 21:26:29 -07:00
en_rep.h net/mlx5e: Protect encap route dev from concurrent release 2020-11-05 12:17:05 -08:00
en_rx.c net/mlx5e: Fix incorrect access of RCU-protected xdp_prog 2020-11-05 12:17:06 -08:00
en_selftest.c net/mlx5e: RX, Add a prefetch command for small L1_CACHE_BYTES 2020-08-26 15:55:53 -07:00
en_stats.c mlx5-updates-2020-09-21 2020-09-22 17:44:59 -07:00
en_stats.h mlx5-updates-2020-09-21 2020-09-22 17:44:59 -07:00
en_tc.c net/mlx5: fix error return code in mlx5e_tc_nic_init() 2020-11-17 11:50:54 -08:00
en_tc.h net/mlx5e: Fix IPsec packet drop by mlx5e_tc_update_skb 2020-11-17 11:50:52 -08:00
en_tx.c net/mlx5e: Set IPsec WAs only in IP's non checksum partial case. 2020-11-17 11:50:52 -08:00
en_txrx.c net/mlx5e: Use synchronize_rcu to sync with NAPI 2020-09-21 17:22:21 -07:00
eq.c net: mlx5: Replace in_irq() usage 2020-11-05 12:09:31 -08:00
eswitch.c net/mlx5: E-Switch, Fail mlx5_esw_modify_vport_rate if qos disabled 2020-11-17 11:50:53 -08:00
eswitch.h net/mlx5: E-switch, Move devlink eswitch ports closer to eswitch 2020-09-30 21:26:29 -07:00
eswitch_offloads.c net/mlx5: E-Switch, Support flow source for local vport 2020-09-30 21:26:30 -07:00
eswitch_offloads_termtbl.c net/mlx5: Refactor tc flow attributes structure 2020-09-23 15:44:35 -07:00
events.c net/mlx5: Fix memory leak in mlx5_events_init 2020-05-22 17:28:46 -07:00
fs_cmd.c net/mlx5: Add NIC TX domain namespace 2020-10-12 15:37:44 -07:00
fs_cmd.h
fs_core.c net/mlx5: Add handling of port type in rule deletion 2020-11-17 11:50:52 -08:00
fs_core.h net/mlx5: Avoid eswitch header inclusion in fs core layer 2020-06-27 13:50:46 -07:00
fs_counters.c net/mlx5e: Replace zero-length array with flexible-array member 2020-02-19 09:13:10 +02:00
fw.c net/mlx5: IPsec: Add HW crypto offload support 2020-07-16 16:36:44 -07:00
fw_reset.c net/mlx5: Add support for fw live patch event 2020-10-09 12:06:53 -07:00
fw_reset.h net/mlx5: Add devlink param enable_remote_dev_reset support 2020-10-09 12:06:53 -07:00
health.c net/mlx5: Handle sync reset request event 2020-10-09 12:06:52 -07:00
lag.c net/mlx5e: Add LAG warning if bond slave is not lag master 2020-09-15 11:59:51 -07:00
lag.h net/mlx5e: Add LAG warning if bond slave is not lag master 2020-09-15 11:59:51 -07:00
lag_mp.c net/mlx5e: Add LAG warning if bond slave is not lag master 2020-09-15 11:59:51 -07:00
lag_mp.h net/mlx5: Use a separate work queue for fib event handling 2020-03-29 23:42:20 -07:00
main.c net/mlx5: Handle sync reset request event 2020-10-09 12:06:52 -07:00
mcg.c net/mlx5: Update mcg.c new cmd interface 2020-04-23 21:42:11 +03:00
mlx5_core.h net/mlx5: Handle sync reset request event 2020-10-09 12:06:52 -07:00
mr.c net/mlx5: Update mr.c new cmd interface 2020-04-23 21:42:12 +03:00
pagealloc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
pci_irq.c net/mlx5: Fix request_irqs error flow 2020-10-02 10:59:56 -07:00
pd.c net/mlx5: Update pd.c new cmd interface 2020-04-23 21:42:13 +03:00
port.c net/mlx5: Refactor query port speed functions 2020-09-17 19:33:02 +03:00
rdma.c
rdma.h
rl.c net/mlx5: Update rl.c new cmd interface 2020-04-23 21:42:14 +03:00
sriov.c net/mlx5: E-switch, Protect eswitch mode changes 2020-03-25 23:19:25 -07:00
transobj.c net/mlx5: Update transobj.c new cmd interface 2020-04-23 21:42:16 +03:00
uar.c net/mlx5: Update uar.c new cmd interface 2020-04-23 21:42:14 +03:00
vport.c net/mlx5: Use fallthrough pseudo-keyword 2020-07-28 02:37:55 -07:00
wq.c net/mlx5e: Reset RQ doorbell counter before moving RQ state from RST to RDY 2020-02-18 19:01:19 -08:00
wq.h net/mlx5e: Add helper to get the RQ WQE counter 2020-07-02 21:05:18 -07:00