linux/drivers/net
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
..
appletalk
arcnet
bonding
caif
can Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
dsa Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
ethernet devlink: move request_firmware out of driver 2020-11-19 21:40:57 -08:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
ipvlan
mdio
netdevsim Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
pcs
phy Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
plip
ppp
slip
team
usb Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
vmxnet3
wan net: wan: Delete the DLCI / SDLA drivers 2020-11-17 13:33:29 -08:00
wireguard wireguard: switch to dev_get_tstats64 2020-11-09 17:50:28 -08:00
wireless Some updates: 2020-11-13 12:03:22 -08:00
xen-netback
bareudp.c net: switch to dev_get_tstats64 2020-11-09 17:50:28 -08:00
dummy.c
eql.c
geneve.c Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
gtp.c gtp: switch to dev_get_tstats64 2020-11-09 17:50:28 -08:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c net: macvlan: remove redundant initialization in macvlan_dev_netpoll_setup 2020-11-07 12:18:41 -08:00
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: switch to net core provided statistics counters 2020-11-09 17:50:28 -08:00
veth.c treewide: rename nla_strlcpy to nla_strscpy. 2020-11-16 08:08:54 -08:00
virtio_net.c
vrf.c vrf: Fix fast path output packet handling with async Netfilter rules 2020-11-12 07:47:06 -08:00
vsockmon.c
vxlan.c net: switch to dev_get_tstats64 2020-11-09 17:50:28 -08:00
xen-netfront.c