diff options
author | Eric Dumazet <edumazet@google.com> | 2024-03-06 17:00:15 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-08 06:12:41 +0100 |
commit | ae6e22f7b7f0702015d86cfa036492b94be92f04 (patch) | |
tree | c741be416be49dc0015f2d02b5e0f81a6a9cb2aa /net/core/dev.h | |
parent | net: introduce struct net_hotdata (diff) | |
download | linux-ae6e22f7b7f0702015d86cfa036492b94be92f04.tar.xz linux-ae6e22f7b7f0702015d86cfa036492b94be92f04.zip |
net: move netdev_budget and netdev_budget to net_hotdata
netdev_budget and netdev_budget are used in rx path (net_rx_action())
Move them into net_hotdata for better cache locality.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240306160031.874438-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/dev.h')
-rw-r--r-- | net/core/dev.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/dev.h b/net/core/dev.h index 45892267848d..9a6170530850 100644 --- a/net/core/dev.h +++ b/net/core/dev.h @@ -38,8 +38,6 @@ int dev_addr_init(struct net_device *dev); void dev_addr_check(struct net_device *dev); /* sysctls not referred to from outside net/core/ */ -extern int netdev_budget; -extern unsigned int netdev_budget_usecs; extern unsigned int sysctl_skb_defer_max; extern int netdev_tstamp_prequeue; extern int netdev_unregister_timeout_secs; |