Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dsk_storage_omem_uncharge.c35 omem = sk->sk_omem_alloc.counter; in BPF_PROG()
/linux/net/core/
H A Dbpf_sk_storage.c202 &newsk->sk_omem_alloc); in bpf_sk_storage_clone()
284 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in bpf_sk_storage_charge()
285 atomic_add(size, &sk->sk_omem_alloc); in bpf_sk_storage_charge()
297 atomic_sub(size, &sk->sk_omem_alloc); in bpf_sk_storage_uncharge()
H A Dsock.c2274 if (atomic_read(&sk->sk_omem_alloc)) in __sk_destruct()
2276 __func__, atomic_read(&sk->sk_omem_alloc)); in __sk_destruct()
2405 atomic_set(&newsk->sk_omem_alloc, 0); in sk_clone_lock()
2747 atomic_sub(skb->truesize, &sk->sk_omem_alloc); in sock_ofree()
2756 if (atomic_read(&sk->sk_omem_alloc) + SKB_TRUESIZE(size) > in sock_omalloc()
2764 atomic_add(skb->truesize, &sk->sk_omem_alloc); in sock_omalloc()
2778 atomic_read(&sk->sk_omem_alloc) + size < optmem_max) { in sock_kmalloc()
2783 atomic_add(size, &sk->sk_omem_alloc); in sock_kmalloc()
2787 atomic_sub(size, &sk->sk_omem_alloc); in sock_kmalloc()
2806 atomic_sub(size, &sk->sk_omem_alloc); in __sock_kfree_s()
[all …]
H A Dfilter.c1218 atomic_sub(filter_size, &sk->sk_omem_alloc); in sk_filter_uncharge()
1232 atomic_read(&sk->sk_omem_alloc) + filter_size < optmem_max) { in __sk_filter_charge()
1233 atomic_add(filter_size, &sk->sk_omem_alloc); in __sk_filter_charge()
/linux/net/ipv6/
H A Dcalipso.c788 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_opt_update()
1213 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_setattr()
1246 atomic_sub(txopts->tot_len, &sk->sk_omem_alloc); in calipso_req_delattr()
H A Dmcast.c280 atomic_sub(sizeof(*mc_lst), &sk->sk_omem_alloc); in ipv6_sock_mc_drop()
342 atomic_sub(sizeof(*mc_lst), &sk->sk_omem_alloc); in __ipv6_sock_mc_close()
462 &sk->sk_omem_alloc); in ip6_mc_source()
567 &sk->sk_omem_alloc); in ip6_mc_msfilter()
2606 &sk->sk_omem_alloc); in ip6_mc_leave_src()
H A Dipv6_sockglue.c387 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in ipv6_set_opt_hdr()
878 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in do_ipv6_setsockopt()
H A Daf_inet6.c514 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in inet6_cleanup_sock()
/linux/net/ipv4/
H A Dtcp_ao.c292 atomic_sub(total_ao_sk_mem, &sk->sk_omem_alloc); in tcp_ao_sk_omem_free()
329 atomic_sub(omem, &(((struct sock *)tp)->sk_omem_alloc)); in tcp_ao_time_wait()
1129 atomic_sub(tcp_ao_sizeof_key(key), &sk->sk_omem_alloc); in tcp_ao_connect_init()
1281 atomic_sub(tcp_ao_sizeof_key(key), &newsk->sk_omem_alloc); in tcp_ao_copy_all_matching()
1752 atomic_sub(tcp_ao_sizeof_key(key), &sk->sk_omem_alloc); in tcp_ao_add_cmd()
1775 atomic_sub(tcp_ao_sizeof_key(key), &sk->sk_omem_alloc); in tcp_ao_delete_key()
1801 atomic_sub(tcp_ao_sizeof_key(key), &sk->sk_omem_alloc); in tcp_ao_delete_key()
H A Digmp.c2254 atomic_sub(struct_size(psf, sl_addr, psf->sl_max), &sk->sk_omem_alloc); in ip_mc_leave_src()
2298 atomic_sub(sizeof(*iml), &sk->sk_omem_alloc); in ip_mc_leave_group()
2416 &sk->sk_omem_alloc); in ip_mc_source()
2521 &sk->sk_omem_alloc); in ip_mc_msfilter()
2712 atomic_sub(sizeof(*iml), &sk->sk_omem_alloc); in ip_mc_drop_socket()
H A Dtcp_ipv4.c1476 atomic_sub(sizeof(*key), &sk->sk_omem_alloc);
1493 atomic_sub(sizeof(*key), &sk->sk_omem_alloc);
/linux/net/sctp/
H A Ddiag.c174 mem[SK_MEMINFO_OPTMEM] = atomic_read(&sk->sk_omem_alloc); in inet_sctp_diag_fill()
/linux/net/sched/
H A Dem_meta.c419 dst->value = atomic_read(&sk->sk_omem_alloc); in META_COLLECTOR()
/linux/include/net/
H A Dsock.h452 atomic_t sk_omem_alloc; member