]> Git Repo - linux.git/commit
ethtool: Veto some operations during firmware flashing process
authorDanielle Ratson <[email protected]>
Thu, 27 Jun 2024 14:08:52 +0000 (17:08 +0300)
committerDavid S. Miller <[email protected]>
Fri, 28 Jun 2024 09:48:22 +0000 (10:48 +0100)
commit31e0aa99dc02b2b038a270b0670fc8201b69ec8a
tree45425afc2e799f2f82c437981b21d825f7505f49
parentd7d4cfc4c97c7cf49cb2893ef60e8ab59dcac047
ethtool: Veto some operations during firmware flashing process

Some operations cannot be performed during the firmware flashing
process.

For example:

- Port must be down during the whole flashing process to avoid packet loss
  while committing reset for example.

- Writing to EEPROM interrupts the flashing process, so operations like
  ethtool dump, module reset, get and set power mode should be vetoed.

- Split port firmware flashing should be vetoed.

In order to veto those scenarios, add a flag in 'struct net_device' that
indicates when a firmware flash is taking place on the module and use it
to prevent interruptions during the process.

Signed-off-by: Danielle Ratson <[email protected]>
Reviewed-by: Petr Machata <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/linux/netdevice.h
net/ethtool/eeprom.c
net/ethtool/ioctl.c
net/ethtool/netlink.c
This page took 0.062915 seconds and 4 git commands to generate.