Home
last modified time | relevance | path

Searched refs:udp_sk (Results 1 – 21 of 21) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dbpf_iter_udp4.c28 struct udp_sock *udp_sk = ctx->udp_sk; in dump_udp4() local
35 if (udp_sk == (void *)0) in dump_udp4()
46 inet = &udp_sk->inet; in dump_udp4()
50 inet = &udp_sk->inet; in dump_udp4()
55 rqueue = inet->sk.sk_rmem_alloc.counter - udp_sk->forward_deficit; in dump_udp4()
66 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
Dbpf_iter_udp6.c35 struct udp_sock *udp_sk = ctx->udp_sk; in dump_udp6() local
43 if (udp_sk == (void *)0) in dump_udp6()
50 udp6_sk = bpf_skc_to_udp6_sock(udp_sk); in dump_udp6()
54 inet = &udp_sk->inet; in dump_udp6()
57 rqueue = inet->sk.sk_rmem_alloc.counter - udp_sk->forward_deficit; in dump_udp6()
74 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
Dsock_destroy_prog.c107 struct udp_sock *udp_sk = ctx->udp_sk; in iter_udp6_client() local
108 struct sock *sk = (struct sock *) udp_sk; in iter_udp6_client()
129 struct udp_sock *udp_sk = ctx->udp_sk; in iter_udp6_server() local
130 struct sock *sk = (struct sock *) udp_sk; in iter_udp6_server()
137 inet = &udp_sk->inet; in iter_udp6_server()
Dsock_iter_batch.c59 #define udp_sk(ptr) container_of(ptr, struct udp_sock, inet.sk) macro
64 struct sock *sk = (struct sock *)ctx->udp_sk; in iter_udp_soreuse()
85 bucket[idx] = udp_sk(sk)->udp_portaddr_hash & udptable->mask; in iter_udp_soreuse()
Dbpf_iter.h104 struct udp_sock *udp_sk; member
/linux-6.12.1/include/linux/
Dudp.h101 test_bit(UDP_FLAGS_##nr, &udp_sk(sk)->udp_flags)
103 set_bit(UDP_FLAGS_##nr, &udp_sk(sk)->udp_flags)
105 test_and_set_bit(UDP_FLAGS_##nr, &udp_sk(sk)->udp_flags)
107 clear_bit(UDP_FLAGS_##nr, &udp_sk(sk)->udp_flags)
109 assign_bit(UDP_FLAGS_##nr, &udp_sk(sk)->udp_flags, val)
113 #define udp_sk(ptr) container_of_const(ptr, struct udp_sock, inet.sk) macro
118 WRITE_ONCE(udp_sk(sk)->peeking_with_offset, val >= 0); in udp_set_peek_off()
189 READ_ONCE(udp_sk(sk)->encap_rcv) && in udp_unexpected_gso()
/linux-6.12.1/net/ipv4/
Dudp_tunnel_core.c74 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
75 udp_sk(sk)->encap_rcv = cfg->encap_rcv; in setup_udp_tunnel_sock()
76 udp_sk(sk)->encap_err_rcv = cfg->encap_err_rcv; in setup_udp_tunnel_sock()
77 udp_sk(sk)->encap_err_lookup = cfg->encap_err_lookup; in setup_udp_tunnel_sock()
78 udp_sk(sk)->encap_destroy = cfg->encap_destroy; in setup_udp_tunnel_sock()
79 udp_sk(sk)->gro_receive = cfg->gro_receive; in setup_udp_tunnel_sock()
80 udp_sk(sk)->gro_complete = cfg->gro_complete; in setup_udp_tunnel_sock()
Dudp.c153 (bitmap || udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse()
166 __set_bit(udp_sk(sk2)->udp_port_hash >> log, in udp_lib_lport_inuse()
190 (udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse2()
220 (udp_sk(sk2)->udp_port_hash == udp_sk(sk)->udp_port_hash) && in udp_reuseport_add_sock()
293 unsigned int slot2 = udp_sk(sk)->udp_portaddr_hash ^ snum; in udp_lib_get_port()
319 udp_sk(sk)->udp_port_hash = snum; in udp_lib_get_port()
320 udp_sk(sk)->udp_portaddr_hash ^= snum; in udp_lib_get_port()
325 udp_sk(sk)->udp_port_hash = 0; in udp_lib_get_port()
326 udp_sk(sk)->udp_portaddr_hash ^= snum; in udp_lib_get_port()
336 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
[all …]
Dxfrm4_input.c83 struct udp_sock *up = udp_sk(sk); in __xfrm4_udp_encap_rcv()
168 udp_sk(sk)->encap_type); in xfrm4_udp_encap_rcv()
Dudp_offload.c574 if (!sk || !udp_sk(sk)->gro_receive) { in udp_gro_receive()
621 pp = call_gro_receive_sk(udp_sk(sk)->gro_receive, sk, head, skb); in udp_gro_receive()
706 if (sk && udp_sk(sk)->gro_complete) { in udp_gro_complete()
719 err = udp_sk(sk)->gro_complete(sk, skb, in udp_gro_complete()
Dudp_bpf.c25 return !skb_queue_empty(&udp_sk(sk)->reader_queue) || in udp_sk_has_data()
/linux-6.12.1/net/ipv6/
Dudp.c104 udp_sk(sk)->udp_portaddr_hash = hash2_partial; in udp_v6_get_port()
127 udp_sk(sk)->udp_port_hash != hnum || in compute_score()
450 if (!__sk_queue_drop_skb(sk, &udp_sk(sk)->reader_queue, skb, flags, in udpv6_recvmsg()
535 up = udp_sk(sk); in __udp6_lib_err_encap()
548 up = udp_sk(sk); in __udp6_lib_err_encap()
585 if (!sk || READ_ONCE(udp_sk(sk)->encap_type)) { in __udp6_lib_err()
627 if (udp_sk(sk)->encap_err_rcv) in __udp6_lib_err()
628 udp_sk(sk)->encap_err_rcv(sk, skb, err, uh->dest, in __udp6_lib_err()
693 struct udp_sock *up = udp_sk(sk); in udpv6_queue_rcv_one_skb()
814 if (udp_sk(sk)->udp_port_hash != hnum || in __udp_v6_is_mcast_sock()
[all …]
Dxfrm6_input.c78 struct udp_sock *up = udp_sk(sk); in __xfrm6_udp_encap_rcv()
166 udp_sk(sk)->encap_type); in xfrm6_udp_encap_rcv()
Dipv6_sockglue.c586 struct udp_sock *up = udp_sk(sk); in do_ipv6_setsockopt()
/linux-6.12.1/include/net/
Dudplite.h74 u16 pcslen = READ_ONCE(udp_sk(sk)->pcslen); in udplite_csum()
Dudp.h181 struct udp_sock *up = udp_sk(sk); in udp_lib_init_sock()
246 return sk_rmem_alloc_get(sk) - READ_ONCE(udp_sk(sk)->forward_deficit); in udp_rqueue_get()
/linux-6.12.1/net/rxrpc/
Dio_thread.c26 int rxrpc_encap_rcv(struct sock *udp_sk, struct sk_buff *skb) in rxrpc_encap_rcv() argument
29 struct rxrpc_local *local = rcu_dereference_sk_user_data(udp_sk); in rxrpc_encap_rcv()
/linux-6.12.1/net/l2tp/
Dl2tp_core.c154 WRITE_ONCE(udp_sk(sk)->encap_type, 0); in l2tp_tunnel_free()
155 udp_sk(sk)->encap_rcv = NULL; in l2tp_tunnel_free()
156 udp_sk(sk)->encap_destroy = NULL; in l2tp_tunnel_free()
/linux-6.12.1/drivers/net/
Dgtp.c856 WRITE_ONCE(udp_sk(sk)->encap_type, 0); in __gtp_encap_destroy()
908 switch (READ_ONCE(udp_sk(sk)->encap_type)) { in gtp_encap_recv()
/linux-6.12.1/net/netfilter/ipvs/
Dip_vs_sync.c1707 struct udp_sock *up = udp_sk(sk); in sync_thread_backup()
/linux-6.12.1/net/core/
Dsock.c4248 !skb_queue_empty_lockless(&udp_sk(sk)->reader_queue)) in sk_busy_loop_end()