diff options
| author | Michael Brown | 2023-07-05 15:30:54 +0200 |
|---|---|---|
| committer | Michael Brown | 2023-07-05 15:30:54 +0200 |
| commit | 6701d91c5033a3804a3bb5d49a8f9f2212b901b4 (patch) | |
| tree | 0a5e950f56f174bf4f27d0d06a5b2df2e6e8f9c6 /src/include | |
| parent | [interface] Fix debug message values for temporary interfaces (diff) | |
| download | ipxe-6701d91c5033a3804a3bb5d49a8f9f2212b901b4.tar.gz ipxe-6701d91c5033a3804a3bb5d49a8f9f2212b901b4.tar.xz ipxe-6701d91c5033a3804a3bb5d49a8f9f2212b901b4.zip | |
[netdevice] Stop link block timer when device is closed
A running link block timer holds a reference to the network device and
will prevent it from being freed until the timer expires. It is
impossible for free_netdev() to be called while the timer is still
running: the call to stop_timer() therein is therefore a no-op.
Stop the link block timer when the device is closed, to allow a
link-blocked device to be freed immediately upon unregistration of the
device. (Since link block state is updated in response to received
packets, the state is effectively undefined for a closed device: there
is therefore no reason to leave the timer running.)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions
