提交 bec94d43 编写于 作者: S stephen hemminger 提交者: David S. Miller

gre: allow live address change

The GRE tap device supports Ethernet over GRE, but doesn't
care about the source address of the tunnel, therefore it
can be changed without bring device down.
Signed-off-by: NStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 33f72e6f
...@@ -673,6 +673,7 @@ static bool ipgre_netlink_encap_parms(struct nlattr *data[], ...@@ -673,6 +673,7 @@ static bool ipgre_netlink_encap_parms(struct nlattr *data[],
static int gre_tap_init(struct net_device *dev) static int gre_tap_init(struct net_device *dev)
{ {
__gre_tunnel_init(dev); __gre_tunnel_init(dev);
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
return ip_tunnel_init(dev); return ip_tunnel_init(dev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册