]> git.ipfire.org Git - thirdparty/linux.git/commit
net: turn the rx_mode work into a generic netdev_work facility
authorJakub Kicinski <kuba@kernel.org>
Wed, 24 Jun 2026 18:20:15 +0000 (11:20 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Jun 2026 17:18:40 +0000 (10:18 -0700)
commit12c765be84d28f22deca10e775889f54bd571a85
tree7948df147704d04fd0a9fb3669575407b365f298
parent1105ef941c1a28e115d1b97f17e1c85576884100
net: turn the rx_mode work into a generic netdev_work facility

The rx_mode update runs from a workqueue: drivers have their
ndo_set_rx_mode_async() callback executed by a single global
work item under RTNL and ops lock. This is a useful pattern.

Support multiple "events" that need to be serviced and make RX_MODE
sync the first one. Call the events "core" because later on
we will let drivers define and schedule their own.

Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20260624182018.2445732-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
net/core/Makefile
net/core/dev.c
net/core/dev.h
net/core/dev_addr_lists.c
net/core/netdev_work.c [new file with mode: 0644]