Skip to content

tcp: add three static keys

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4sysctl: define proc_do_static_key()include/linux/bpf.h include/linux/sysctl.h kernel/bpf/core.c +1 more+26 -233 replies
2/4tcp: add tcp_rx_skb_cache sysctlDocumentation/networking/ip-sysctl.txt include/net/sock.h net/ipv4/sysctl_net_ipv4.c+19 -41 reply
3/4tcp: add tcp_tx_skb_cache sysctlinclude/net/sock.h net/ipv4/sysctl_net_ipv4.c+11 -11 reply
4/4net: add high_order_alloc_disable sysctl/static keyinclude/net/sock.h net/core/sock.c net/core/sysctl_net_core.c+12 -10 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchAlexei StarovoitovFeng Tang
1/4A-b
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/4] tcp: add three static keys

Recent addition of per TCP socket rx/tx cache brought regressions for some workloads, as reported by Feng Tang.

It seems better to make them opt-in, before we adopt better heuristics.

The last patch adds high_order_alloc_disable sysctl to ask TCP sendmsg() to exclusively use order-0 allocations, as mm layer has specific optimizations.

Eric Dumazet (4):
sysctl: define proc_do_static_key()
tcp: add tcp_rx_skb_cache sysctl
tcp: add tcp_tx_skb_cache sysctl
net: add high_order_alloc_disable sysctl/static key

 Documentation/networking/ip-sysctl.txt |  8 +++++
 include/linux/bpf.h                    |  1 -
 include/linux/sysctl.h                 |  3 ++
 include/net/sock.h                     | 12 ++++---
 kernel/bpf/core.c                      |  1 -
 kernel/sysctl.c                        | 44 ++++++++++++++------------
 net/core/sock.c                        |  4 ++-
 net/core/sysctl_net_core.c             |  7 ++++
 net/ipv4/sysctl_net_ipv4.c             | 17 ++++++++++
 9 files changed, 68 insertions(+), 29 deletions(-)
Signature · 1 line
2.22.0.410.gd8fdbe21b5-goog