diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2018-12-05 14:14:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-06 02:01:51 +0100 |
commit | d08c6bc08f72f74cd37f6b7954e3f708005518f9 (patch) | |
tree | f78b107ea4b36adf481fbe3ca32cc89bb084f6bb /net/bridge/br_multicast.c | |
parent | net: bridge: mark hash_elasticity as obsolete (diff) | |
download | linux-d08c6bc08f72f74cd37f6b7954e3f708005518f9.tar.xz linux-d08c6bc08f72f74cd37f6b7954e3f708005518f9.zip |
net: bridge: increase multicast's default maximum number of entries
bridge's default hash_max was 512 which is rather conservative, now that
we're using the generic rhashtable API which autoshrinks let's increase
it to 4096 and move it to a define in br_private.h.
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_multicast.c')
-rw-r--r-- | net/bridge/br_multicast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 804ee15c45c1..879cd2315769 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1741,7 +1741,7 @@ static void br_ip6_multicast_query_expired(struct timer_list *t) void br_multicast_init(struct net_bridge *br) { - br->hash_max = 512; + br->hash_max = BR_MULTICAST_DEFAULT_HASH_MAX; br->multicast_router = MDB_RTR_TYPE_TEMP_QUERY; br->multicast_last_member_count = 2; |