Re: [RFC] packet: change call of synchronize_net to call_rcu

2012-09-04 Thread David Miller
From: Daniel Borkmann Date: Tue, 4 Sep 2012 16:53:06 +0200 > On Tue, Sep 4, 2012 at 4:16 PM, Iulius Curt wrote: >> synchronize_net is called every time we close a PF_PACKET socket which is >> causing performance loss when doing this on many sockets. > > Do you have any particular use case in mi

Re: [RFC] packet: change call of synchronize_net to call_rcu

2012-09-04 Thread Daniel Borkmann
On Tue, Sep 4, 2012 at 4:16 PM, Iulius Curt wrote: > synchronize_net is called every time we close a PF_PACKET socket which is > causing performance loss when doing this on many sockets. Do you have any particular use case in mind? I can imagine if you are closing a PF_PACKET socket in a network

[RFC] packet: change call of synchronize_net to call_rcu

2012-09-04 Thread Iulius Curt
synchronize_net is called every time we close a PF_PACKET socket which is causing performance loss when doing this on many sockets. Signed-off-by: Sorin Dumitru Signed-off-by: Iulius Curt --- Statistics using test program [1] Sockets count | Not patched | Patched ___