Home
last modified time | relevance | path

Searched refs:optmem_max (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/vsock/
H A Dvsock_test.c1678 * by hitting net.core.optmem_max limit in sock_omalloc(), specifically
1695 * implementation and configuration (for example, order of net.core.optmem_max
1748 size_t optmem_max, ctl_len, chunk_size; in test_stream_msgzcopy_leak_zcskb_client()
1755 f = fopen("/proc/sys/net/core/optmem_max", "r"); in test_stream_msgzcopy_leak_zcskb_client()
1757 perror("fopen(optmem_max)"); in test_stream_msgzcopy_leak_zcskb_client()
1761 if (fscanf(f, "%zu", &optmem_max) != 1) { in test_stream_msgzcopy_leak_zcskb_client()
1762 fprintf(stderr, "fscanf(optmem_max) failed\n"); in test_stream_msgzcopy_leak_zcskb_client()
1776 ctl_len = optmem_max - 1; in test_stream_msgzcopy_leak_zcskb_client()
1778 fprintf(stderr, "Try with net.core.optmem_max = 100000\n"); in test_stream_msgzcopy_leak_zcskb_client()
1727 size_t optmem_max, ctl_len, chunk_size; test_stream_msgzcopy_leak_zcskb_client() local
/linux/Documentation/admin-guide/sysctl/
H A Dnet.rst371 optmem_max chapter
376 optmem_max as a limit for its internal structures.
/linux/Documentation/networking/device_drivers/ethernet/chelsio/
H A Dcxgb.rst159 sysctl -w net.core.optmem_max=524287
/linux/net/core/
H A Dfilter.c1238 int optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in __sk_filter_charge() local
1242 if (filter_size <= optmem_max && in __sk_filter_charge()
1243 atomic_read(&sk->sk_omem_alloc) + filter_size < optmem_max) { in __sk_filter_charge()
1569 int err, optmem_max; in sk_reuseport_attach_filter() local
1574 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_filter()
1575 if (bpf_prog_size(prog->len) > optmem_max) in sk_reuseport_attach_filter()
1614 int err, optmem_max; in sk_reuseport_attach_bpf() local
1642 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_bpf()
1643 if (bpf_prog_size(prog->len) > optmem_max) { in sk_reuseport_attach_bpf()