Home
last modified time | relevance | path

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

/linux/net/core/
H A Dbpf_sk_storage.c283 int optmem_max; in bpf_sk_storage_charge() local
285 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in bpf_sk_storage_charge()
287 if (size <= optmem_max && in bpf_sk_storage_charge()
288 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in bpf_sk_storage_charge()
H A Dsock.c2888 int optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sock_kmalloc() local
2890 if ((unsigned int)size <= optmem_max && in sock_kmalloc()
2891 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in sock_kmalloc()
H A Dfilter.c1242 int optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in __sk_filter_charge() local
1246 if (filter_size <= optmem_max && in __sk_filter_charge()
1247 atomic_read(&sk->sk_omem_alloc) + filter_size < optmem_max) { in __sk_filter_charge()
1573 int err, optmem_max; in sk_reuseport_attach_filter() local
1578 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_filter()
1579 if (bpf_prog_size(prog->len) > optmem_max) in sk_reuseport_attach_filter()
1618 int err, optmem_max; in sk_reuseport_attach_bpf() local
1646 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_bpf()
1647 if (bpf_prog_size(prog->len) > optmem_max) { in sk_reuseport_attach_bpf()
/linux/tools/testing/vsock/
H A Dvsock_test.c1748 size_t optmem_max, ctl_len, chunk_size; in test_stream_msgzcopy_leak_zcskb_client() local
1761 if (fscanf(f, "%zu", &optmem_max) != 1) { in test_stream_msgzcopy_leak_zcskb_client()
1776 ctl_len = optmem_max - 1; in test_stream_msgzcopy_leak_zcskb_client()
/linux/Documentation/networking/device_drivers/ethernet/chelsio/
H A Dcxgb.rst159 sysctl -w net.core.optmem_max=524287