summaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorAndre Carvalho <asantostc@gmail.com>2026-01-18 14:00:26 +0300
committerJakub Kicinski <kuba@kernel.org>2026-01-22 06:09:11 +0300
commit220dbe3c76ed13a7b68393212a625eaf1770b96f (patch)
tree4763c797d24cf4b805517f7af6239dd78b3dd2e6 /include/linux/errqueue.h
parentc52861e566db8af86c9fb412ccffa274c610babf (diff)
downloadlinux-220dbe3c76ed13a7b68393212a625eaf1770b96f.tar.xz
netconsole: resume previously deactivated target
Attempt to resume a previously deactivated target when the associated interface comes back (NETDEV_REGISTER) or when it changes name (NETDEV_CHANGENAME) by calling netpoll_setup on the device. Depending on how the target was setup (by mac or interface name), the corresponding field is compared with the device being brought up. Targets that match the incoming device, are scheduled for resume on a workqueue. Resuming happens on a workqueue as we can't execute netpoll_setup in the context of the netdev event. A standalone workqueue (as opposed to the global one) is used to allow for proper cleanup process during netconsole module cleanup as we need to be able to flush all pending work before traversing the target list given that targets are temporarily removed from the list during resume_target. Target transitions to STATE_DISABLED in case of failures resuming it to avoid retrying the same target indefinitely. Signed-off-by: Andre Carvalho <asantostc@gmail.com> Reviewed-by: Breno Leitao <leitao@debian.org> Tested-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20260118-netcons-retrigger-v11-6-4de36aebcf48@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions