On Fri, Apr 2, 2021 at 3:16 AM Jakub Sitnicki <jakub@xxxxxxxxxxxxxx> wrote: > > -struct proto *udp_bpf_get_proto(struct sock *sk, struct sk_psock *psock) > > +int udp_bpf_update_proto(struct sock *sk, bool restore) > > { > > int family = sk->sk_family == AF_INET ? UDP_BPF_IPV4 : UDP_BPF_IPV6; > > + struct sk_psock *psock = sk_psock(sk); > > + > > + if (restore) { > > + sk->sk_write_space = psock->saved_write_space; > > + /* Pairs with lockless read in sk_clone_lock() */ > > Just to clarify. UDP sockets don't get cloned, so the above comment > apply. Good catch! It is clearly a copy-n-paste. I will send a patch to remove it. Thanks.