[PATCH] veth: allow changing the mac address while interface is up

Subsystems: networking drivers, the rest

STALE5093d

2 messages, 2 authors, 2012-11-01 · open the first message on its own page

[PATCH] veth: allow changing the mac address while interface is up

From: Hannes Frederic Sowa <hidden>
Date: 2012-10-31 02:28:53

Signed-off-by: Hannes Frederic Sowa <redacted>
---
 drivers/net/veth.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index 5852361..9f87718 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -264,6 +264,7 @@ static void veth_setup(struct net_device *dev)
 	ether_setup(dev);
 
 	dev->priv_flags &= ~IFF_TX_SKB_SHARING;
+	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
 
 	dev->netdev_ops = &veth_netdev_ops;
 	dev->ethtool_ops = &veth_ethtool_ops;

Re: [PATCH] veth: allow changing the mac address while interface is up

From: David Miller <davem@davemloft.net>
Date: 2012-11-01 16:26:39

From: Hannes Frederic Sowa <redacted>
Date: Wed, 31 Oct 2012 03:22:01 +0100
Signed-off-by: Hannes Frederic Sowa <redacted>
Applied to net-next, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help