summaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-06-16 14:05:17 -0700
committerBen Pfaff <blp@nicira.com>2011-06-17 13:38:31 -0700
commitba489aa7a52e129bc3939ac91f8127fc0c1bb385 (patch)
tree3bb48f55fbb4e50bfdde7d310a5450e77124bd57 /vswitchd
parent78857dfb3dd2812d8b3a036a2b5adb46be8d7ae8 (diff)
downloadopenvswitch-ba489aa7a52e129bc3939ac91f8127fc0c1bb385.tar.gz
bridge: Avoid duplicate logging when netdev_get_etheraddr() fails.
get_etheraddr() in netdev-linux.c logs when the Ethernet address cannot be obtained so there is no need to log again in the caller. Bug #5844.
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/bridge.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 9868ef5b6..3a9cfa9de 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -1023,9 +1023,6 @@ bridge_pick_local_hw_addr(struct bridge *br, uint8_t ea[ETH_ADDR_LEN],
/* Grab MAC. */
error = netdev_get_etheraddr(iface->netdev, iface_ea);
if (error) {
- static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
- VLOG_ERR_RL(&rl, "failed to obtain Ethernet address of %s: %s",
- iface->name, strerror(error));
continue;
}
}