summaryrefslogtreecommitdiffstats
path: root/include/net/inet_hashtables.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-05-20 10:59:01 -0700
committerDavid S. Miller <davem@davemloft.net>2015-05-21 18:55:32 -0400
commitf5af1f57a2914e290de40e2c93716da8885c4965 (patch)
tree049b30e53d7306127d6afc0752596f23c366840c /include/net/inet_hashtables.h
parentce5ec440994b7b2b714633b516b9e0a4f6a98dfe (diff)
downloadop-kernel-dev-f5af1f57a2914e290de40e2c93716da8885c4965.zip
op-kernel-dev-f5af1f57a2914e290de40e2c93716da8885c4965.tar.gz
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>
Diffstat (limited to 'include/net/inet_hashtables.h')
-rw-r--r--include/net/inet_hashtables.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h
index 73fe0f9..774d241 100644
--- a/include/net/inet_hashtables.h
+++ b/include/net/inet_hashtables.h
@@ -148,8 +148,6 @@ struct inet_hashinfo {
*/
struct inet_listen_hashbucket listening_hash[INET_LHTABLE_SIZE]
____cacheline_aligned_in_smp;
-
- atomic_t bsockets;
};
static inline struct inet_ehash_bucket *inet_ehash_bucket(
OpenPOWER on IntegriCloud