diff options
author | Martin KaFai Lau <kafai@fb.com> | 2017-12-01 23:52:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-03 18:18:27 +0300 |
commit | 76d013b20ba9a5f88eee7c90ac82cbc3ee64be18 (patch) | |
tree | 7db33c2816dda86781e70cb1da2ffebf4e81a390 /include/net/inet_hashtables.h | |
parent | fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3 (diff) | |
download | linux-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.h | 1 |
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; }; |