Home
last modified time | relevance | path

Searched refs:sk_omem_alloc (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/net/core/
Dbpf_sk_storage.c103 atomic_read(&sk->sk_omem_alloc) + size < sysctl_optmem_max) { in omem_charge()
104 atomic_add(size, &sk->sk_omem_alloc); in omem_charge()
138 atomic_sub(smap->elem_size, &sk->sk_omem_alloc); in selem_alloc()
162 atomic_sub(smap->elem_size, &sk->sk_omem_alloc); in __selem_unlink_sk()
167 atomic_sub(sizeof(struct bpf_sk_storage), &sk->sk_omem_alloc); in __selem_unlink_sk()
378 atomic_sub(sizeof(*sk_storage), &sk->sk_omem_alloc); in sk_storage_alloc()
419 atomic_sub(smap->elem_size, &sk->sk_omem_alloc); in sk_storage_update()
820 &newsk->sk_omem_alloc); in bpf_sk_storage_clone()
Dsock.c1712 if (atomic_read(&sk->sk_omem_alloc)) in __sk_destruct()
1714 __func__, atomic_read(&sk->sk_omem_alloc)); in __sk_destruct()
1822 atomic_set(&newsk->sk_omem_alloc, 0); in sk_clone_lock()
2110 atomic_sub(skb->truesize, &sk->sk_omem_alloc); in sock_ofree()
2119 if (atomic_read(&sk->sk_omem_alloc) + SKB_TRUESIZE(size) > in sock_omalloc()
2127 atomic_add(skb->truesize, &sk->sk_omem_alloc); in sock_omalloc()
2139 atomic_read(&sk->sk_omem_alloc) + size < sysctl_optmem_max) { in sock_kmalloc()
2144 atomic_add(size, &sk->sk_omem_alloc); in sock_kmalloc()
2148 atomic_sub(size, &sk->sk_omem_alloc); in sock_kmalloc()
2167 atomic_sub(size, &sk->sk_omem_alloc); in __sock_kfree_s()
[all …]
Dfilter.c1186 atomic_sub(filter_size, &sk->sk_omem_alloc); in sk_filter_uncharge()
1199 atomic_read(&sk->sk_omem_alloc) + filter_size < sysctl_optmem_max) { in __sk_filter_charge()
1200 atomic_add(filter_size, &sk->sk_omem_alloc); in __sk_filter_charge()
/Linux-v5.4/net/ipv6/
Dcalipso.c795 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_opt_update()
1219 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_setattr()
1252 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_delattr()
Dipv6_sockglue.c237 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in do_ipv6_setsockopt()
468 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in do_ipv6_setsockopt()
541 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in do_ipv6_setsockopt()
Daf_inet6.c495 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in inet6_destroy_sock()
Dmcast.c248 atomic_sub(sizeof(*mc_lst), &sk->sk_omem_alloc); in ipv6_sock_mc_drop()
312 atomic_sub(sizeof(*mc_lst), &sk->sk_omem_alloc); in __ipv6_sock_mc_close()
/Linux-v5.4/net/ipv4/
Digmp.c2237 atomic_sub(IP_SFLSIZE(psf->sl_max), &sk->sk_omem_alloc); in ip_mc_leave_src()
2281 atomic_sub(sizeof(*iml), &sk->sk_omem_alloc); in ip_mc_leave_group()
2397 atomic_sub(IP_SFLSIZE(psl->sl_max), &sk->sk_omem_alloc); in ip_mc_source()
2497 atomic_sub(IP_SFLSIZE(psl->sl_max), &sk->sk_omem_alloc); in ip_mc_msfilter()
2691 atomic_sub(sizeof(*iml), &sk->sk_omem_alloc); in ip_mc_drop_socket()
Dtcp_ipv4.c1127 atomic_sub(sizeof(*key), &sk->sk_omem_alloc); in tcp_md5_do_del()
1144 atomic_sub(sizeof(*key), &sk->sk_omem_alloc); in tcp_clear_md5_list()
/Linux-v5.4/net/sctp/
Ddiag.c177 mem[SK_MEMINFO_OPTMEM] = atomic_read(&sk->sk_omem_alloc); in inet_sctp_diag_fill()
/Linux-v5.4/net/sched/
Dem_meta.c416 dst->value = atomic_read(&sk->sk_omem_alloc); in META_COLLECTOR()
/Linux-v5.4/include/net/
Dsock.h404 atomic_t sk_omem_alloc; member