]> www.infradead.org Git - users/hch/configfs.git/commit
ethtool: move firmware flashing flag to struct ethtool_netdev_state
authorEdward Cree <ecree.xilinx@gmail.com>
Wed, 3 Jul 2024 12:18:49 +0000 (13:18 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jul 2024 22:45:15 +0000 (15:45 -0700)
commitcaa93b7c25945d302689de07bd404655db93ae6e
tree8fe0394c9d1648d6ece7c3751ee30c29a3803428
parent76ed626479ebe0227728eff16bb44544ebd98920
ethtool: move firmware flashing flag to struct ethtool_netdev_state

Commit 31e0aa99dc02 ("ethtool: Veto some operations during firmware flashing process")
 added a flag module_fw_flash_in_progress to struct net_device.  As
 this is ethtool related state, move it to the recently created
 struct ethtool_netdev_state, accessed via the 'ethtool' member of
 struct net_device.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20240703121849.652893-1-edward.cree@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ethtool.h
include/linux/netdevice.h
net/ethtool/eeprom.c
net/ethtool/ioctl.c
net/ethtool/module.c
net/ethtool/netlink.c