Home
last modified time | relevance | path

Searched refs:optmem_max (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/net/core/
H A Dbpf_sk_storage.c307 int optmem_max = READ_ONCE(sysctl_optmem_max); in sk_storage_charge() local
311 if (size <= optmem_max && in sk_storage_charge()
312 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in sk_storage_charge()
H A Dsock.c2255 int optmem_max = READ_ONCE(sysctl_optmem_max); in sock_kmalloc() local
2257 if ((unsigned int)size <= optmem_max && in sock_kmalloc()
2258 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in sock_kmalloc()
H A Dfilter.c1221 int optmem_max = READ_ONCE(sysctl_optmem_max); in __sk_filter_charge() local
1224 if (filter_size <= optmem_max && in __sk_filter_charge()
1225 atomic_read(&sk->sk_omem_alloc) + filter_size < optmem_max) { in __sk_filter_charge()
/kernel/linux/linux-6.6/net/core/
H A Dbpf_sk_storage.c278 int optmem_max = READ_ONCE(sysctl_optmem_max); in bpf_sk_storage_charge() local
282 if (size <= optmem_max && in bpf_sk_storage_charge()
283 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in bpf_sk_storage_charge()
H A Dsock.c2695 int optmem_max = READ_ONCE(sysctl_optmem_max); in sock_kmalloc() local
2697 if ((unsigned int)size <= optmem_max && in sock_kmalloc()
2698 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in sock_kmalloc()
H A Dfilter.c1221 int optmem_max = READ_ONCE(sysctl_optmem_max); in __sk_filter_charge() local
1224 if (filter_size <= optmem_max && in __sk_filter_charge()
1225 atomic_read(&sk->sk_omem_alloc) + filter_size < optmem_max) { in __sk_filter_charge()

Completed in 34 milliseconds