diff options
| author | Jiawen Wu <jiawenwu@trustnetic.com> | 2026-05-25 13:05:41 +0300 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-05-28 12:51:51 +0300 |
| commit | 7116ffb48ad0af7a6d066c3e80329270920858fe (patch) | |
| tree | 81db0f011036e84affa6b8679383e41d2a7ffa25 /include/linux | |
| parent | fabcf8cad67b4e2aa51b4c3f79f26fd215b50c8c (diff) | |
| download | linux-7116ffb48ad0af7a6d066c3e80329270920858fe.tar.xz | |
net: wangxun: introduce WX_STATE_DOWN to serialize device shutdown state
Replace various netif_running() checks with an explicit WX_STATE_DOWN
state bit to track whether the device datapath and interrupt handling
are operational.
The previous logic relied on netif_running() to gate interrupt
reenablement, queue wakeups, statistics updates, and service task
execution. However, netif_running() only reflects the administrative
state of the netdevice and does not fully serialize against teardown
and reset paths. During device shutdown and reset flows, asynchronous
contexts such as interrupt handlers, NAPI poll, and service work could
still observe netif_running() as true while device resources were
already being disabled or freed.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://patch.msgid.link/20260525100543.27140-2-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
