Re: [RFC net-next 1/2] net: add SOCK_RCU_FREE socket flag

2016-03-25 Thread Tom Herbert
On Fri, Mar 25, 2016 at 3:29 PM, Eric Dumazet wrote: > We want a generic way to insert an RCU grace period before socket > freeing for cases where RCU_SLAB_DESTROY_BY_RCU is adding too > much overhead. > > SLAB_DESTROY_BY_RCU strict rules force us to take a reference > on the socket sk_refcnt, and

[RFC net-next 1/2] net: add SOCK_RCU_FREE socket flag

2016-03-25 Thread Eric Dumazet
We want a generic way to insert an RCU grace period before socket freeing for cases where RCU_SLAB_DESTROY_BY_RCU is adding too much overhead. SLAB_DESTROY_BY_RCU strict rules force us to take a reference on the socket sk_refcnt, and it is a performance problem for UDP encapsulation, or TCP synflo