diff options
author | Jakub Kicinski <kuba@kernel.org> | 2025-03-07 21:30:06 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-08 20:06:50 +0300 |
commit | 8ef890df4031121a94407c84659125cbccd3fdbe (patch) | |
tree | 3200b186f428a9dd37b0b7e9bd034cf8e32a9f9f /drivers/net/ipvlan/ipvlan_main.c | |
parent | 9bfc9d65a1dc9ca2d45210ff4227517b460c19af (diff) | |
download | linux-8ef890df4031121a94407c84659125cbccd3fdbe.tar.xz |
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/ipvlan/ipvlan_main.c')
-rw-r--r-- | drivers/net/ipvlan/ipvlan_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index b56144ca2fde..0ed2fd833a5d 100644 --- a/drivers/net/ipvlan/ipvlan_main.c +++ b/drivers/net/ipvlan/ipvlan_main.c @@ -3,6 +3,7 @@ */ #include <linux/ethtool.h> +#include <net/netdev_lock.h> #include "ipvlan.h" |