netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: visibility of memory limits in netns
@ 2024-05-28 12:11 Matteo Croce
  2024-05-28 12:11 ` [PATCH net-next 1/2] net: make net.core.{r,w}mem_{default,max} namespaced Matteo Croce
  2024-05-28 12:11 ` [PATCH net-next 2/2] selftests: net: tests net.core.{r,w}mem_{default,max} sysctls in a netns Matteo Croce
  0 siblings, 2 replies; 6+ messages in thread
From: Matteo Croce @ 2024-05-28 12:11 UTC (permalink / raw)
  To: netdev
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Shuah Khan, Shakeel Butt, linux-kernel, linux-kselftest

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

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

-- 
2.45.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-30 13:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28 12:11 [PATCH net-next 0/2] net: visibility of memory limits in netns Matteo Croce
2024-05-28 12:11 ` [PATCH net-next 1/2] net: make net.core.{r,w}mem_{default,max} namespaced Matteo Croce
2024-05-28 15:02   ` Shakeel Butt
2024-05-28 12:11 ` [PATCH net-next 2/2] selftests: net: tests net.core.{r,w}mem_{default,max} sysctls in a netns Matteo Croce
2024-05-30 12:10   ` Breno Leitao
2024-05-30 13:58     ` Paolo Abeni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).