summaryrefslogtreecommitdiff
path: root/net/core/hotdata.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 19:00:21 +0300
committerJakub Kicinski <kuba@kernel.org>2024-03-08 08:12:42 +0300
commit26722dc74bf08fd79564cbcad1e5f3e2aa3bf9cc (patch)
tree6248466ea462cdaa30d2f03e2e6001ce9110464e /net/core/hotdata.c
parent0139806eebd6bcf6a3df98950cd0691aff216304 (diff)
downloadlinux-26722dc74bf08fd79564cbcad1e5f3e2aa3bf9cc.tar.xz
net: move dev_tx_weight to net_hotdata
dev_tx_weight is used in tx fast path. Move it to 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-9-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/hotdata.c')
-rw-r--r--net/core/hotdata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/hotdata.c b/net/core/hotdata.c
index 35ed5a83ecc7..ec8c3b48e8fe 100644
--- a/net/core/hotdata.c
+++ b/net/core/hotdata.c
@@ -16,5 +16,6 @@ struct net_hotdata net_hotdata __cacheline_aligned = {
.tstamp_prequeue = 1,
.max_backlog = 1000,
+ .dev_tx_weight = 64,
};
EXPORT_SYMBOL(net_hotdata);