[PATCH net-next v2 0/2] net: visibility of memory limits in netns

technoboy85@gmail.com posted 2 patches 1 year, 6 months ago
net/core/sysctl_net_core.c                  | 75 ++++++++++++---------
tools/testing/selftests/net/Makefile        |  1 +
tools/testing/selftests/net/netns-sysctl.sh | 40 +++++++++++
3 files changed, 83 insertions(+), 33 deletions(-)
create mode 100755 tools/testing/selftests/net/netns-sysctl.sh
[PATCH net-next v2 0/2] net: visibility of memory limits in netns
Posted by technoboy85@gmail.com 1 year, 6 months ago
From: Matteo Croce <teknoraver@meta.com>

Some programs need to know the size of the network buffers to operate
correctly, export the following sysctls read-only in network namespaces:

- net.core.rmem_default
- net.core.rmem_max
- net.core.wmem_default
- net.core.wmem_max

Matteo Croce (2):
  net: make net.core.{r,w}mem_{default,max} namespaced
  selftests: net: tests net.core.{r,w}mem_{default,max} sysctls in a
    netns

changes from v1:
- added SPDX header to test
- rewrite test with more detailed error messages

 net/core/sysctl_net_core.c                  | 75 ++++++++++++---------
 tools/testing/selftests/net/Makefile        |  1 +
 tools/testing/selftests/net/netns-sysctl.sh | 40 +++++++++++
 3 files changed, 83 insertions(+), 33 deletions(-)
 create mode 100755 tools/testing/selftests/net/netns-sysctl.sh

-- 
2.45.1