diff mbox

vxlan: allow live mac address change

Message ID 20121231140021.5ec82f3a@nehalam.linuxnetplumber.net
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

stephen hemminger Dec. 31, 2012, 10 p.m. UTC
The VXLAN pseudo-device doesn't care if the mac address changes
when device is up.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Jiri Pirko Jan. 1, 2013, 8:19 a.m. UTC | #1
Mon, Dec 31, 2012 at 11:00:21PM CET, shemminger@vyatta.com wrote:
>The VXLAN pseudo-device doesn't care if the mac address changes
>when device is up.
>
>Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
>
>
>--- a/drivers/net/vxlan.c	2012-12-27 22:30:53.630796042 -0800
>+++ b/drivers/net/vxlan.c	2012-12-31 10:46:25.435321912 -0800
>@@ -1191,6 +1191,7 @@ static void vxlan_setup(struct net_devic
> 
> 	dev->hw_features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXCSUM;
> 	dev->priv_flags	&= ~IFF_XMIT_DST_RELEASE;
>+	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
> 
> 	spin_lock_init(&vxlan->hash_lock);
> 

Reviewed-by: Jiri Pirko <jiri@resnulli.us>


>--
>To unsubscribe from this list: send the line "unsubscribe netdev" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller Jan. 3, 2013, 9:58 a.m. UTC | #2
From: Jiri Pirko <jiri@resnulli.us>
Date: Tue, 1 Jan 2013 09:19:49 +0100

> Mon, Dec 31, 2012 at 11:00:21PM CET, shemminger@vyatta.com wrote:
>>The VXLAN pseudo-device doesn't care if the mac address changes
>>when device is up.
>>
>>Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
 ...
> Reviewed-by: Jiri Pirko <jiri@resnulli.us>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/drivers/net/vxlan.c	2012-12-27 22:30:53.630796042 -0800
+++ b/drivers/net/vxlan.c	2012-12-31 10:46:25.435321912 -0800
@@ -1191,6 +1191,7 @@  static void vxlan_setup(struct net_devic
 
 	dev->hw_features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXCSUM;
 	dev->priv_flags	&= ~IFF_XMIT_DST_RELEASE;
+	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
 
 	spin_lock_init(&vxlan->hash_lock);