summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 16:00:15 +0000
committerJakub Kicinski <kuba@kernel.org>2024-03-07 21:12:41 -0800
commitae6e22f7b7f0702015d86cfa036492b94be92f04 (patch)
treec741be416be49dc0015f2d02b5e0f81a6a9cb2aa /include/net
parent2658b5a8a4eee5fad378d0bde2f221deacbc58f1 (diff)
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 'include/net')
-rw-r--r--include/net/hotdata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/hotdata.h b/include/net/hotdata.h
index 6ed32e4e34aa..72170223385e 100644
--- a/include/net/hotdata.h
+++ b/include/net/hotdata.h
@@ -8,6 +8,8 @@
struct net_hotdata {
struct list_head offload_base;
int gro_normal_batch;
+ int netdev_budget;
+ int netdev_budget_usecs;
};
extern struct net_hotdata net_hotdata;