Searched refs:sk_omem_alloc (Results 1 – 14 of 14) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | sk_storage_omem_uncharge.c | 35 omem = sk->sk_omem_alloc.counter; in BPF_PROG()
|
/linux/net/core/ |
H A D | bpf_sk_storage.c | 202 &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 D | sock.c | 2274 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 D | filter.c | 1218 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 D | calipso.c | 788 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 D | mcast.c | 280 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 D | ipv6_sockglue.c | 387 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 D | af_inet6.c | 514 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in inet6_cleanup_sock()
|
/linux/net/ipv4/ |
H A D | tcp_ao.c | 292 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 D | igmp.c | 2254 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 D | tcp_ipv4.c | 1476 atomic_sub(sizeof(*key), &sk->sk_omem_alloc); 1493 atomic_sub(sizeof(*key), &sk->sk_omem_alloc);
|
/linux/net/sctp/ |
H A D | diag.c | 174 mem[SK_MEMINFO_OPTMEM] = atomic_read(&sk->sk_omem_alloc); in inet_sctp_diag_fill()
|
/linux/net/sched/ |
H A D | em_meta.c | 419 dst->value = atomic_read(&sk->sk_omem_alloc); in META_COLLECTOR()
|
/linux/include/net/ |
H A D | sock.h | 452 atomic_t sk_omem_alloc; member
|