Re: [PATCH net-next 1/2] inet_hashinfo: remove bsocket counter

2015-05-21 Thread Flavio Leitner
On Wed, May 20, 2015 at 10:59:01AM -0700, Eric Dumazet wrote: We no longer need bsocket atomic counter, as inet_csk_get_port() calls bind_conflict() regardless of its value, after commit 2b05ad33e1e624e (tcp: bind() fix autoselection to share ports) This patch removes overhead of maintaining

[PATCH net-next 1/2] inet_hashinfo: remove bsocket counter

2015-05-20 Thread Eric Dumazet
We no longer need bsocket atomic counter, as inet_csk_get_port() calls bind_conflict() regardless of its value, after commit 2b05ad33e1e624e (tcp: bind() fix autoselection to share ports) This patch removes overhead of maintaining this counter and double inet_csk_get_port() calls under pressure.