Re: [PATCH v2 net-next 01/11] net: add SOCK_RCU_FREE socket flag

2016-04-02 Thread Tom Herbert
On Fri, Apr 1, 2016 at 11:52 AM, 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

[PATCH v2 net-next 01/11] net: add SOCK_RCU_FREE socket flag

2016-04-01 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