inet_hashinfo: remove bsocket counter
authorEric Dumazet <edumazet@google.com>
Wed, 20 May 2015 17:59:01 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 22:55:32 +0000 (18:55 -0400)
commitf5af1f57a2914e290de40e2c93716da8885c4965
tree049b30e53d7306127d6afc0752596f23c366840c
parentce5ec440994b7b2b714633b516b9e0a4f6a98dfe
inet_hashinfo: remove bsocket counter

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.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Marcelo Ricardo Leitner <mleitner@redhat.com>
Cc: Flavio Leitner <fbl@redhat.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h
net/ipv4/inet_connection_sock.c
net/ipv4/inet_hashtables.c