diff options
author | 2025-03-07 10:30:06 -0800 | |
---|---|---|
committer | 2025-03-08 09:06:50 -0800 | |
commit | 8ef890df4031121a94407c84659125cbccd3fdbe (patch) | |
tree | 3200b186f428a9dd37b0b7e9bd034cf8e32a9f9f /drivers/net/vxlan/vxlan_core.c | |
parent | hamradio: use netdev_lockdep_set_classes() helper (diff) | |
download | wireguard-linux-8ef890df4031121a94407c84659125cbccd3fdbe.tar.xz wireguard-linux-8ef890df4031121a94407c84659125cbccd3fdbe.zip |
net: move misc netdev_lock flavors to a separate header
Move the more esoteric helpers for netdev instance lock to
a dedicated header. This avoids growing netdevice.h to infinity
and makes rebuilding the kernel much faster (after touching
the header with the helpers).
The main netdev_lock() / netdev_unlock() functions are used
in static inlines in netdevice.h and will probably be used
most commonly, so keep them in netdevice.h.
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250307183006.2312761-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/vxlan/vxlan_core.c')
-rw-r--r-- | drivers/net/vxlan/vxlan_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c index 227d7f5a302a..8c49e903cb3a 100644 --- a/drivers/net/vxlan/vxlan_core.c +++ b/drivers/net/vxlan/vxlan_core.c @@ -25,6 +25,7 @@ #include <net/inet_ecn.h> #include <net/net_namespace.h> #include <net/netns/generic.h> +#include <net/netdev_lock.h> #include <net/tun_proto.h> #include <net/vxlan.h> #include <net/nexthop.h> |