Signed-off-by: zhongbaisong <[email protected]>
---
 vswitchd/bridge.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 71f73d6..925edfc 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -4432,6 +4432,9 @@ iface_set_mac(const struct bridge *br, const struct port 
*port, struct iface *if
         } else if (eth_addr_is_multicast(*mac)) {
             VLOG_ERR("interface %s: cannot set MAC to multicast address",
                      iface->name);
+        } else if (eth_addr_is_zero(*mac)) {
+            VLOG_ERR("interface %s: cannot set MAC to all zero address",
+                     iface->name);
         } else {
             int error = netdev_set_etheraddr(iface->netdev, *mac);
             if (error) {
-- 
1.9.5.msysgit.1


_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to