summaryrefslogtreecommitdiff
path: root/include/net/inet_hashtables.h
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2017-12-01 23:52:29 +0300
committerDavid S. Miller <davem@davemloft.net>2017-12-03 18:18:27 +0300
commit76d013b20ba9a5f88eee7c90ac82cbc3ee64be18 (patch)
tree7db33c2816dda86781e70cb1da2ffebf4e81a390 /include/net/inet_hashtables.h
parentfb7516d42478ebc8e2f00efb76ef96f7b68fd8d3 (diff)
downloadlinux-76d013b20ba9a5f88eee7c90ac82cbc3ee64be18.tar.xz
inet: Add a count to struct inet_listen_hashbucket
This patch adds a count to the 'struct inet_listen_hashbucket'. It counts how many sk is hashed to a bucket. It will be used to decide if the (to-be-added) portaddr listener's hashtable should be used during inet[6]_lookup_listener(). Signed-off-by: Martin KaFai Lau <kafai@fb.com> Reviewed-by: Eric Dumazet <edumazet@google.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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h
index 2dbbbff5e1e3..4cce516c41ac 100644
--- a/include/net/inet_hashtables.h
+++ b/include/net/inet_hashtables.h
@@ -111,6 +111,7 @@ struct inet_bind_hashbucket {
*/
struct inet_listen_hashbucket {
spinlock_t lock;
+ unsigned int count;
struct hlist_head head;
};