summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 16:00:21 +0000
committerJakub Kicinski <kuba@kernel.org>2024-03-07 21:12:42 -0800
commit26722dc74bf08fd79564cbcad1e5f3e2aa3bf9cc (patch)
tree6248466ea462cdaa30d2f03e2e6001ce9110464e /include/net
parent0139806eebd6bcf6a3df98950cd0691aff216304 (diff)
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 'include/net')
-rw-r--r--include/net/hotdata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/hotdata.h b/include/net/hotdata.h
index d86d02f156fc..ffea9cc263e5 100644
--- a/include/net/hotdata.h
+++ b/include/net/hotdata.h
@@ -21,6 +21,7 @@ struct net_hotdata {
int netdev_budget_usecs;
int tstamp_prequeue;
int max_backlog;
+ int dev_tx_weight;
};
extern struct net_hotdata net_hotdata;