Thread (12 messages) 12 messages, 2 authors, 2020-02-14

Re: [PATCH v2 net 3/3] wireguard: send: account for mtu=0 devices

flat view

From: "Jason A. Donenfeld" <Jason@zx2c4.com>
Date: 2020-02-14 22:53:38

On Fri, Feb 14, 2020 at 11:30 PM Eric Dumazet [off-list ref] wrote:
Also note that UDP sockets have SOCK_RCU_FREE flag set, so core
networking also respect one RCU grace period before freeing them.
       if (use_call_rcu)
               call_rcu(&sk->sk_rcu, __sk_destruct);
       else
               __sk_destruct(&sk->sk_rcu);

Ah, that's handy indeed.
It is possible that no extra synchronize_{net|rcu}() call is needed,
but this is left as an exercise for future kernels :)
Cool, yea, sounds like something I should play with for 5.7.

Sending v3 out in a few minutes.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help