linux/include/net/netns
Eric Dumazet f5769faeec net: Namespace-ify sysctl_optmem_max
optmem_max being used in tx zerocopy,
we want to be able to control it on a netns basis.

Following patch changes two tests.

Tested:

oqq130:~# cat /proc/sys/net/core/optmem_max
131072
oqq130:~# echo 1000000 >/proc/sys/net/core/optmem_max
oqq130:~# cat /proc/sys/net/core/optmem_max
1000000
oqq130:~# unshare -n
oqq130:~# cat /proc/sys/net/core/optmem_max
131072
oqq130:~# exit
logout
oqq130:~# cat /proc/sys/net/core/optmem_max
1000000

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-12-15 11:01:27 +00:00
..
bpf.h
can.h
conntrack.h netfilter: conntrack: switch connlabels to atomic_t 2023-10-24 13:16:30 +02:00
core.h net: Namespace-ify sysctl_optmem_max 2023-12-15 11:01:27 +00:00
flow_table.h
generic.h
hash.h
ieee802154_6lowpan.h
ipv4.h Use READ/WRITE_ONCE() for IP local_port_range. 2023-12-08 10:44:42 -08:00
ipv6.h net/ipv6: convert skip_notify_on_dev_down sysctl to u8 2023-06-02 22:55:43 -07:00
mctp.h
mib.h
mpls.h
netfilter.h
nexthop.h
nftables.h net: Remove leftover include from nftables.h 2023-08-13 14:55:25 +01:00
packet.h
sctp.h
smc.h net/smc: add sysctl for max conns per lgr for SMC-R v2.1 2023-11-24 12:13:14 +00:00
unix.h
xdp.h
xfrm.h xfrm: fix a data-race in xfrm_gen_index() 2023-09-13 09:20:28 +02:00