diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-05-10 05:31:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-16 02:10:02 -0400 |
commit | 28a16c97963d3bc36a2c192859f6d8025ef2967a (patch) | |
tree | 01d21938502412959c88757df973cc5a770d1cce /net/bridge/br_multicast.c | |
parent | cfb478da70f2213520866c84cb0aea0d7c0e1148 (diff) |
bridge: change console message interface
Use one set of macro's for all bridge messages.
Note: can't use netdev_XXX macro's because bridge is purely
virtual and has no device parent.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.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 | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index c8419e240316..9d21d98ae5fa 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c | |||
@@ -585,10 +585,9 @@ static struct net_bridge_mdb_entry *br_multicast_get_group( | |||
585 | 585 | ||
586 | if (unlikely(count > br->hash_elasticity && count)) { | 586 | if (unlikely(count > br->hash_elasticity && count)) { |
587 | if (net_ratelimit()) | 587 | if (net_ratelimit()) |
588 | printk(KERN_INFO "%s: Multicast hash table " | 588 | br_info(br, "Multicast hash table " |
589 | "chain limit reached: %s\n", | 589 | "chain limit reached: %s\n", |
590 | br->dev->name, port ? port->dev->name : | 590 | port ? port->dev->name : br->dev->name); |
591 | br->dev->name); | ||
592 | 591 | ||
593 | elasticity = br->hash_elasticity; | 592 | elasticity = br->hash_elasticity; |
594 | } | 593 | } |
@@ -596,11 +595,9 @@ static struct net_bridge_mdb_entry *br_multicast_get_group( | |||
596 | if (mdb->size >= max) { | 595 | if (mdb->size >= max) { |
597 | max *= 2; | 596 | max *= 2; |
598 | if (unlikely(max >= br->hash_max)) { | 597 | if (unlikely(max >= br->hash_max)) { |
599 | printk(KERN_WARNING "%s: Multicast hash table maximum " | 598 | br_warn(br, "Multicast hash table maximum " |
600 | "reached, disabling snooping: %s, %d\n", | 599 | "reached, disabling snooping: %s, %d\n", |
601 | br->dev->name, port ? port->dev->name : | 600 | port ? port->dev->name : br->dev->name, max); |
602 | br->dev->name, | ||
603 | max); | ||
604 | err = -E2BIG; | 601 | err = -E2BIG; |
605 | disable: | 602 | disable: |
606 | br->multicast_disabled = 1; | 603 | br->multicast_disabled = 1; |
@@ -611,22 +608,19 @@ disable: | |||
611 | if (max > mdb->max || elasticity) { | 608 | if (max > mdb->max || elasticity) { |
612 | if (mdb->old) { | 609 | if (mdb->old) { |
613 | if (net_ratelimit()) | 610 | if (net_ratelimit()) |
614 | printk(KERN_INFO "%s: Multicast hash table " | 611 | br_info(br, "Multicast hash table " |
615 | "on fire: %s\n", | 612 | "on fire: %s\n", |
616 | br->dev->name, port ? port->dev->name : | 613 | port ? port->dev->name : br->dev->name); |
617 | br->dev->name); | ||
618 | err = -EEXIST; | 614 | err = -EEXIST; |
619 | goto err; | 615 | goto err; |
620 | } | 616 | } |
621 | 617 | ||
622 | err = br_mdb_rehash(&br->mdb, max, elasticity); | 618 | err = br_mdb_rehash(&br->mdb, max, elasticity); |
623 | if (err) { | 619 | if (err) { |
624 | printk(KERN_WARNING "%s: Cannot rehash multicast " | 620 | br_warn(br, "Cannot rehash multicast " |
625 | "hash table, disabling snooping: " | 621 | "hash table, disabling snooping: %s, %d, %d\n", |
626 | "%s, %d, %d\n", | 622 | port ? port->dev->name : br->dev->name, |
627 | br->dev->name, port ? port->dev->name : | 623 | mdb->size, err); |
628 | br->dev->name, | ||
629 | mdb->size, err); | ||
630 | goto disable; | 624 | goto disable; |
631 | } | 625 | } |
632 | 626 | ||