Lines Matching refs:psock
29 static bool psock_has_data(struct sk_psock *psock)
31 return !skb_queue_empty(&psock->ingress_skb) ||
32 !sk_psock_queue_empty(psock);
38 static int udp_msg_wait_data(struct sock *sk, struct sk_psock *psock,
52 ret = udp_msg_has_data(sk, psock);
55 ret = udp_msg_has_data(sk, psock);
65 struct sk_psock *psock;
74 psock = sk_psock_get(sk);
75 if (unlikely(!psock))
78 if (!psock_has_data(psock)) {
84 copied = sk_msg_recvmsg(sk, psock, msg, len, flags);
90 data = udp_msg_wait_data(sk, psock, timeo);
92 if (psock_has_data(psock))
101 sk_psock_put(sk, psock);
141 int udp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
146 sk->sk_write_space = psock->saved_write_space;
147 sock_replace_proto(sk, psock->sk_proto);
152 udp_bpf_check_v6_needs_rebuild(psock->sk_proto);