From: Ben Pfaff Date: Tue, 3 Mar 2009 19:34:52 +0000 (-0800) Subject: datapath: Allow datapath device MAC address to be changed while it is up. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0b0a2cf1d130b8645ce3da6042c1bdc8a7c33b5;p=openvswitch datapath: Allow datapath device MAC address to be changed while it is up. vswitchd wants to do this, and I don't see a reason to disallow it. --- diff --git a/datapath/dp_dev.c b/datapath/dp_dev.c index d522347f..bc6cb03d 100644 --- a/datapath/dp_dev.c +++ b/datapath/dp_dev.c @@ -48,8 +48,6 @@ static int dp_dev_mac_addr(struct net_device *dev, void *p) { struct sockaddr *addr = p; - if (netif_running(dev)) - return -EBUSY; if (!is_valid_ether_addr(addr->sa_data)) return -EADDRNOTAVAIL; memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);