]> www.infradead.org Git - users/hch/configfs.git/commit
ethtool: Add ability to flash transceiver modules' firmware
authorDanielle Ratson <danieller@nvidia.com>
Thu, 27 Jun 2024 14:08:56 +0000 (17:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2024 09:48:23 +0000 (10:48 +0100)
commit32b4c8b53ee7799e34a2b1634d32d3ce1e36c44e
tree72a14e6f11d5cdb10c2d0123b4c74aeae9bd23f3
parentc4f78134d45c9619339c96b4bea380b1d0699788
ethtool: Add ability to flash transceiver modules' firmware

Add the ability to flash the modules' firmware by implementing the
interface between the user space and the kernel.

Example from a succeeding implementation:

 # ethtool --flash-module-firmware swp40 file test.bin

 Transceiver module firmware flashing started for device swp40
 Transceiver module firmware flashing in progress for device swp40
 Progress: 99%
 Transceiver module firmware flashing completed for device swp40

In addition, add infrastructure that allows modules to set socket-specific
private data. This ensures that when a socket is closed from user space
during the flashing process, the right socket halts sending notifications
to user space until the work item is completed.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/module.c
net/ethtool/module_fw.h
net/ethtool/netlink.c
net/ethtool/netlink.h