Home
last modified time | relevance | path

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

/linux-6.12.1/net/core/
Dbpf_sk_storage.c279 int optmem_max; in bpf_sk_storage_charge() local
281 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in bpf_sk_storage_charge()
283 if (size <= optmem_max && in bpf_sk_storage_charge()
284 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in bpf_sk_storage_charge()
Dfilter.c1227 int optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in __sk_filter_charge() local
1231 if (filter_size <= optmem_max && in __sk_filter_charge()
1232 atomic_read(&sk->sk_omem_alloc) + filter_size < optmem_max) { in __sk_filter_charge()
1558 int err, optmem_max; in sk_reuseport_attach_filter() local
1563 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_filter()
1564 if (bpf_prog_size(prog->len) > optmem_max) in sk_reuseport_attach_filter()
1603 int err, optmem_max; in sk_reuseport_attach_bpf() local
1631 optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sk_reuseport_attach_bpf()
1632 if (bpf_prog_size(prog->len) > optmem_max) { in sk_reuseport_attach_bpf()
Dsock.c2781 int optmem_max = READ_ONCE(sock_net(sk)->core.sysctl_optmem_max); in sock_kmalloc() local
2783 if ((unsigned int)size <= optmem_max && in sock_kmalloc()
2784 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in sock_kmalloc()
/linux-6.12.1/Documentation/admin-guide/sysctl/
Dnet.rst350 optmem_max chapter
355 optmem_max as a limit for its internal structures.
/linux-6.12.1/Documentation/networking/device_drivers/ethernet/chelsio/
Dcxgb.rst159 sysctl -w net.core.optmem_max=524287