]> git.ipfire.org Git - thirdparty/linux.git/commit
net: add the driver-facing netdev_work scheduling API
authorJakub Kicinski <kuba@kernel.org>
Wed, 24 Jun 2026 18:20:16 +0000 (11:20 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Jun 2026 17:18:40 +0000 (10:18 -0700)
commit129cdce9da9e44c52d38889e0411be9817bca114
tree7d9bbc0d71bc16f4817ee6ade42064244e900232
parent12c765be84d28f22deca10e775889f54bd571a85
net: add the driver-facing netdev_work scheduling API

With an extra event mask we can easily extend the netdev work
to also service driver-defined events. For advanced drivers
this is probably not a perfect match, but it makes running
deferred work easier in simple cases.

Expose the netdev_work facility to drivers. Add helpers
to schedule work and a dedicated ndo to perform the driver-
-scheduled actions.

Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20260624182018.2445732-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
net/core/netdev_work.c