Home
last modified time | relevance | path

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

/net/core/
A Dbpf_sk_storage.c282 int optmem_max; in bpf_sk_storage_charge() local
284 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in bpf_sk_storage_charge()
286 if (size <= optmem_max && in bpf_sk_storage_charge()
287 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in bpf_sk_storage_charge()
A Dfilter.c1244 int optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in __sk_filter_charge() local
1248 if (filter_size <= optmem_max && in __sk_filter_charge()
1249 atomic_read(&sk->sk_omem_alloc) + filter_size < optmem_max) { in __sk_filter_charge()
1575 int err, optmem_max; in sk_reuseport_attach_filter() local
1580 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_filter()
1581 if (bpf_prog_size(prog->len) > optmem_max) in sk_reuseport_attach_filter()
1620 int err, optmem_max; in sk_reuseport_attach_bpf() local
1648 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_bpf()
1649 if (bpf_prog_size(prog->len) > optmem_max) { in sk_reuseport_attach_bpf()
A Dsock.c2856 int optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sock_kmalloc() local
2858 if ((unsigned int)size <= optmem_max && in sock_kmalloc()
2859 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in sock_kmalloc()

Completed in 31 milliseconds