Skip to content

net: use less storage for most sysctl

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5sysctl: add proc_dou8vec_minmax()fs/proc/proc_sysctl.c include/linux/sysctl.h kernel/sysctl.c+73 -00 repliesApplied
2/5ipv4: shrink netns_ipv4 with sysctl conversionsinclude/net/netns/ipv4.h net/ipv4/sysctl_net_ipv4.c+48 -480 repliesApplied
3/5ipv4: convert ip_forward_update_priority sysctl to u8include/net/netns/ipv4.h net/ipv4/sysctl_net_ipv4.c+3 -30 repliesApplied
4/5inet: convert tcp_early_demux and udp_early_demux to u8include/net/netns/ipv4.h net/ipv4/sysctl_net_ipv4.c+6 -60 repliesApplied
5/5tcp: convert elligible sysctls to u8include/net/netns/ipv4.h net/ipv4/sysctl_net_ipv4.c+102 -1020 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/5] net: use less storage for most sysctl

From: Eric Dumazet <[email protected]>

This patch series adds a new sysctl type, to allow using u8 instead of "int" or "long int" types.

Then we convert mosts sysctls found in struct netns_ipv4 to shrink it by three cache lines.

Eric Dumazet (5):
sysctl: add proc_dou8vec_minmax()
ipv4: shrink netns_ipv4 with sysctl conversions
ipv4: convert ip_forward_update_priority sysctl to u8
inet: convert tcp_early_demux and udp_early_demux to u8
tcp: convert elligible sysctls to u8

 fs/proc/proc_sysctl.c      |   6 ++
 include/linux/sysctl.h     |   2 +
 include/net/netns/ipv4.h   | 106 +++++++++----------
 kernel/sysctl.c            |  65 ++++++++++++
 net/ipv4/sysctl_net_ipv4.c | 212 ++++++++++++++++++-------------------
 5 files changed, 232 insertions(+), 159 deletions(-)
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog