Skip to content

net: optmem_max changes

Eric Dumazet netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: increase optmem_max default valueDocumentation/admin-guide/sysctl/net.rst net/core/sock.c+8 -33 repliesApplied
2/3net: Namespace-ify sysctl_optmem_maxinclude/net/netns/core.h include/net/sock.h net/core/bpf_sk_storage.c +6 more+29 -272 repliesApplied
3/3selftests/net: optmem_max became per netnstools/testing/selftests/net/io_uring_zerocopy_tx.sh tools/testing/selftests/net/msg_zerocopy.sh+8 -101 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchWillem de BruijnNeal Cardwell
1/3R-b R-b A-b
2/3R-b A-b
3/3R-b

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-next 0/3] net: optmem_max changes

optmem_max default value is too small for tx zerocopy workloads.

First patch increases default from 20KB to 128 KB, which is the value we have used for seven years.

Second patch makes optmem_max sysctl per netns.

Last patch tweaks two tests accordingly.

Eric Dumazet (3):
net: increase optmem_max default value
net: Namespace-ify sysctl_optmem_max
selftests/net: optmem_max became per netns

 Documentation/admin-guide/sysctl/net.rst          |  5 ++++-
 include/net/netns/core.h                          |  1 +
 include/net/sock.h                                |  1 -
 net/core/bpf_sk_storage.c                         |  3 ++-
 net/core/filter.c                                 | 12 +++++++-----
 net/core/net_namespace.c                          |  4 ++++
 net/core/sock.c                                   |  8 ++------
 net/core/sysctl_net_core.c                        | 15 ++++++++-------
 net/ipv4/ip_sockglue.c                            |  6 +++---
 net/ipv6/ipv6_sockglue.c                          |  4 ++--
 .../testing/selftests/net/io_uring_zerocopy_tx.sh |  9 ++++-----
 tools/testing/selftests/net/msg_zerocopy.sh       |  9 ++++-----
 12 files changed, 41 insertions(+), 36 deletions(-)
Signature · 1 line
2.43.0.472.g3155946c3a-goog