All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] ip6gre: Allow live link address change
@ 2016-06-08 19:15 Shweta Choudaha
  2016-06-09  5:35 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Shweta Choudaha @ 2016-06-08 19:15 UTC (permalink / raw)
  To: netdev, stephen

The ip6 GRE tap device should not be forced to down state to change
the mac address and should allow live address change for tap device
similar to ipv4 gre.

Signed-off-by: Shweta Choudaha <schoudah@brocade.com>
---
 net/ipv6/ip6_gre.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c
index f4ac284..fdc9de2 100644
--- a/net/ipv6/ip6_gre.c
+++ b/net/ipv6/ip6_gre.c
@@ -1256,6 +1256,8 @@ static int ip6gre_tap_init(struct net_device *dev)
 	if (ret)
 		return ret;
 
+	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
+
 	tunnel = netdev_priv(dev);
 
 	ip6gre_tnl_link_config(tunnel, 1);
@@ -1289,6 +1291,7 @@ static void ip6gre_tap_setup(struct net_device *dev)
 
 	dev->features |= NETIF_F_NETNS_LOCAL;
 	dev->priv_flags &= ~IFF_TX_SKB_SHARING;
+	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
 }
 
 static bool ip6gre_netlink_encap_parms(struct nlattr *data[],
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net] ip6gre: Allow live link address change
  2016-06-08 19:15 [PATCH net] ip6gre: Allow live link address change Shweta Choudaha
@ 2016-06-09  5:35 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-06-09  5:35 UTC (permalink / raw)
  To: schoudah; +Cc: netdev, stephen

From: Shweta Choudaha <schoudah@brocade.com>
Date: Wed, 8 Jun 2016 20:15:43 +0100

> The ip6 GRE tap device should not be forced to down state to change
> the mac address and should allow live address change for tap device
> similar to ipv4 gre.
> 
> Signed-off-by: Shweta Choudaha <schoudah@brocade.com>

Applied to net-next, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-09  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-08 19:15 [PATCH net] ip6gre: Allow live link address change Shweta Choudaha
2016-06-09  5:35 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.