diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2024-03-07 21:12:45 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-07 21:12:46 -0800 |
| commit | e8bb2ccff7216d520a7bc33c22484dafebe8147e (patch) | |
| tree | 29b291f5ccbeb9324f98f48e352a84d311314f69 /net/core/dev.h | |
| parent | d3423ed9b89d27d0fd8386dbb9bee89728c92b87 (diff) | |
| parent | ce7f49ab741591d83e33e56948bac2f12de6e14e (diff) | |
Merge branch 'net-group-together-hot-data'
Eric Dumazet says:
====================
net: group together hot data
While our recent structure reorganizations were focused
on increasing max throughput, there is still an
area where improvements are much needed.
In many cases, a cpu handles one packet at a time,
instead of a nice batch.
Hardware interrupt.
-> Software interrupt.
-> Network/Protocol stacks.
If the cpu was idle or busy in other layers,
it has to pull many cache lines.
This series adds a new net_hotdata structure, where
some critical (and read-mostly) data used in
rx and tx path is packed in a small number of cache lines.
Synthetic benchmarks will not see much difference,
but latency of single packet should improve.
net_hodata current size on 64bit is 416 bytes,
but might grow in the future.
Also move RPS definitions to a new include file.
====================
Link: https://lore.kernel.org/r/20240306160031.874438-1-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 | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/core/dev.h b/net/core/dev.h index 45892267848d..2bcaf8eee50c 100644 --- a/net/core/dev.h +++ b/net/core/dev.h @@ -38,10 +38,7 @@ 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; extern int weight_p; extern int dev_weight_rx_bias; |
