diff options
Diffstat (limited to 'net/bridge/br_multicast.c')
-rw-r--r-- | net/bridge/br_multicast.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 2d9a0663b848..241743417f49 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c | |||
@@ -540,10 +540,11 @@ static struct net_bridge_mdb_entry *br_multicast_get_group( | |||
540 | 540 | ||
541 | if (mdb->size >= max) { | 541 | if (mdb->size >= max) { |
542 | max *= 2; | 542 | max *= 2; |
543 | if (unlikely(max >= br->hash_max)) { | 543 | if (unlikely(max > br->hash_max)) { |
544 | br_warn(br, "Multicast hash table maximum " | 544 | br_warn(br, "Multicast hash table maximum of %d " |
545 | "reached, disabling snooping: %s, %d\n", | 545 | "reached, disabling snooping: %s\n", |
546 | port ? port->dev->name : br->dev->name, max); | 546 | br->hash_max, |
547 | port ? port->dev->name : br->dev->name); | ||
547 | err = -E2BIG; | 548 | err = -E2BIG; |
548 | disable: | 549 | disable: |
549 | br->multicast_disabled = 1; | 550 | br->multicast_disabled = 1; |