Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_iter_udp4.c29 struct udp_sock *udp_sk = ctx->udp_sk; in dump_udp4() local
36 if (udp_sk == (void *)0) in dump_udp4()
47 inet = &udp_sk->inet; in dump_udp4()
51 inet = &udp_sk->inet; in dump_udp4()
56 rqueue = inet->sk.sk_rmem_alloc.counter - udp_sk->forward_deficit; in dump_udp4()
67 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
Dbpf_iter_udp6.c36 struct udp_sock *udp_sk = ctx->udp_sk; in dump_udp6() local
44 if (udp_sk == (void *)0) in dump_udp6()
51 udp6_sk = bpf_skc_to_udp6_sock(udp_sk); in dump_udp6()
55 inet = &udp_sk->inet; in dump_udp6()
58 rqueue = inet->sk.sk_rmem_alloc.counter - udp_sk->forward_deficit; in dump_udp6()
75 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
Dbpf_iter.h88 struct udp_sock *udp_sk; member
/kernel/linux/linux-5.10/include/linux/
Dudp.h98 static inline struct udp_sock *udp_sk(const struct sock *sk) in udp_sk() function
105 udp_sk(sk)->no_check6_tx = val; in udp_set_no_check6_tx()
110 udp_sk(sk)->no_check6_rx = val; in udp_set_no_check6_rx()
115 return udp_sk(sk)->no_check6_tx; in udp_get_no_check6_tx()
120 return udp_sk(sk)->no_check6_rx; in udp_get_no_check6_rx()
139 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4 && !udp_sk(sk)->accept_udp_l4) in udp_unexpected_gso()
142 if (skb_shinfo(skb)->gso_type & SKB_GSO_FRAGLIST && !udp_sk(sk)->accept_udp_fraglist) in udp_unexpected_gso()
/kernel/linux/linux-5.10/net/ipv4/
Dudp_tunnel_core.c76 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
77 udp_sk(sk)->encap_rcv = cfg->encap_rcv; in setup_udp_tunnel_sock()
78 udp_sk(sk)->encap_err_lookup = cfg->encap_err_lookup; in setup_udp_tunnel_sock()
79 udp_sk(sk)->encap_destroy = cfg->encap_destroy; in setup_udp_tunnel_sock()
80 udp_sk(sk)->gro_receive = cfg->gro_receive; in setup_udp_tunnel_sock()
81 udp_sk(sk)->gro_complete = cfg->gro_complete; in setup_udp_tunnel_sock()
Dudp.c143 (bitmap || udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse()
156 __set_bit(udp_sk(sk2)->udp_port_hash >> log, in udp_lib_lport_inuse()
180 (udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse2()
210 (udp_sk(sk2)->udp_port_hash == udp_sk(sk)->udp_port_hash) && in udp_reuseport_add_sock()
283 unsigned int slot2 = udp_sk(sk)->udp_portaddr_hash ^ snum; in udp_lib_get_port()
309 udp_sk(sk)->udp_port_hash = snum; in udp_lib_get_port()
310 udp_sk(sk)->udp_portaddr_hash ^= snum; in udp_lib_get_port()
315 udp_sk(sk)->udp_port_hash = 0; in udp_lib_get_port()
316 udp_sk(sk)->udp_portaddr_hash ^= snum; in udp_lib_get_port()
324 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
[all …]
Dudp_offload.c517 NAPI_GRO_CB(skb)->is_flist = sk ? !udp_sk(sk)->gro_enabled: 1; in udp_gro_receive()
519 if ((sk && udp_sk(sk)->gro_enabled) || NAPI_GRO_CB(skb)->is_flist) { in udp_gro_receive()
528 !udp_sk(sk)->gro_receive) in udp_gro_receive()
554 pp = call_gro_receive_sk(udp_sk(sk)->gro_receive, sk, head, skb); in udp_gro_receive()
638 if (sk && udp_sk(sk)->gro_complete) { in udp_gro_complete()
646 err = udp_sk(sk)->gro_complete(sk, skb, in udp_gro_complete()
Dxfrm4_input.c84 struct udp_sock *up = udp_sk(sk); in xfrm4_udp_encap_rcv()
/kernel/linux/linux-5.10/include/net/
Dudplite.h31 udp_sk(sk)->pcflag = UDPLITE_BIT; in udplite_sk_init()
76 const struct udp_sock *up = udp_sk(skb->sk); in udplite_csum_outgoing()
119 const struct udp_sock *up = udp_sk(skb->sk); in udplite_csum()
Dudp_tunnel.h171 struct udp_sock *up = udp_sk(sock->sk); in udp_tunnel_encap_enable()
Dudp.h255 return sk_rmem_alloc_get(sk) - READ_ONCE(udp_sk(sk)->forward_deficit); in udp_rqueue_get()
/kernel/linux/linux-5.10/net/rxrpc/
Dlocal_object.c132 udp_sk(usk)->encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
133 udp_sk(usk)->encap_rcv = rxrpc_input_packet; in rxrpc_open_socket()
134 udp_sk(usk)->encap_destroy = NULL; in rxrpc_open_socket()
135 udp_sk(usk)->gro_receive = NULL; in rxrpc_open_socket()
136 udp_sk(usk)->gro_complete = NULL; in rxrpc_open_socket()
Dinput.c1207 int rxrpc_input_packet(struct sock *udp_sk, struct sk_buff *skb) in rxrpc_input_packet() argument
1209 struct rxrpc_local *local = rcu_dereference_sk_user_data(udp_sk); in rxrpc_input_packet()
1218 _enter("%p", udp_sk); in rxrpc_input_packet()
/kernel/linux/linux-5.10/net/ipv6/
Dudp.c88 udp_sk(sk)->udp_portaddr_hash = hash2_partial; in udp_v6_get_port()
111 udp_sk(sk)->udp_port_hash != hnum || in compute_score()
419 if (udp_sk(sk)->gro_enabled) in udpv6_recvmsg()
442 if (!__sk_queue_drop_skb(sk, &udp_sk(sk)->reader_queue, skb, flags, in udpv6_recvmsg()
529 struct udp_sock *up = udp_sk(sk); in __udp6_lib_err_encap()
658 struct udp_sock *up = udp_sk(sk); in udpv6_queue_rcv_one_skb()
770 if (udp_sk(sk)->udp_port_hash != hnum || in __udp_v6_is_mcast_sock()
830 if (!uh->check && !udp_sk(sk)->no_check6_rx) in __udp6_lib_mcast_deliver()
947 if (!uh->check && !udp_sk(sk)->no_check6_rx) { in __udp6_lib_rcv()
969 if (!uh->check && !udp_sk(sk)->no_check6_rx) in __udp6_lib_rcv()
[all …]
Dxfrm6_input.c79 struct udp_sock *up = udp_sk(sk); in xfrm6_udp_encap_rcv()
Dipv6_sockglue.c440 struct udp_sock *up = udp_sk(sk); in do_ipv6_setsockopt()
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_core.c1144 (udp_sk(sk))->encap_type = 0; in l2tp_tunnel_destruct()
1145 (udp_sk(sk))->encap_rcv = NULL; in l2tp_tunnel_destruct()
1146 (udp_sk(sk))->encap_destroy = NULL; in l2tp_tunnel_destruct()
/kernel/linux/linux-5.10/drivers/net/
Dgtp.c292 udp_sk(sk)->encap_type = 0; in __gtp_encap_destroy()
334 switch (udp_sk(sk)->encap_type) { in gtp_encap_recv()
/kernel/linux/linux-5.10/net/netfilter/ipvs/
Dip_vs_sync.c1718 struct udp_sock *up = udp_sk(sk); in sync_thread_backup()