Searched refs:optmem_max (Results 1 – 6 of 6) sorted by relevance
286 int optmem_max; in bpf_sk_storage_charge() local288 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in bpf_sk_storage_charge()290 if (size <= optmem_max && in bpf_sk_storage_charge()291 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in bpf_sk_storage_charge()
2871 int optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sock_kmalloc() local2873 if ((unsigned int)size <= optmem_max && in sock_kmalloc()2874 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in sock_kmalloc()
1243 int optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in __sk_filter_charge() local1247 if (filter_size <= optmem_max && in __sk_filter_charge()1248 atomic_read(&sk->sk_omem_alloc) + filter_size < optmem_max) { in __sk_filter_charge()1574 int err, optmem_max; in sk_reuseport_attach_filter() local1579 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_filter()1580 if (bpf_prog_size(prog->len) > optmem_max) in sk_reuseport_attach_filter()1619 int err, optmem_max; in sk_reuseport_attach_bpf() local1647 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_bpf()1648 if (bpf_prog_size(prog->len) > optmem_max) { in sk_reuseport_attach_bpf()
1727 size_t optmem_max, ctl_len, chunk_size; in test_stream_msgzcopy_leak_zcskb_client() local1740 if (fscanf(f, "%zu", &optmem_max) != 1) { in test_stream_msgzcopy_leak_zcskb_client()1755 ctl_len = optmem_max - 1; in test_stream_msgzcopy_leak_zcskb_client()
371 optmem_max chapter376 optmem_max as a limit for its internal structures.
159 sysctl -w net.core.optmem_max=524287