diff options
-rw-r--r-- | net/ipv6/ip6_tunnel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index d9b272159097..2bda3ba100b1 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c | |||
@@ -243,6 +243,8 @@ static struct ip6_tnl *ip6_tnl_create(struct net *net, struct ip6_tnl_parm *p) | |||
243 | if (dev == NULL) | 243 | if (dev == NULL) |
244 | goto failed; | 244 | goto failed; |
245 | 245 | ||
246 | dev_net_set(dev, net); | ||
247 | |||
246 | if (strchr(name, '%')) { | 248 | if (strchr(name, '%')) { |
247 | if (dev_alloc_name(dev, name) < 0) | 249 | if (dev_alloc_name(dev, name) < 0) |
248 | goto failed_free; | 250 | goto failed_free; |
@@ -1341,6 +1343,7 @@ static void ip6_tnl_dev_setup(struct net_device *dev) | |||
1341 | dev->mtu = ETH_DATA_LEN - sizeof (struct ipv6hdr); | 1343 | dev->mtu = ETH_DATA_LEN - sizeof (struct ipv6hdr); |
1342 | dev->flags |= IFF_NOARP; | 1344 | dev->flags |= IFF_NOARP; |
1343 | dev->addr_len = sizeof(struct in6_addr); | 1345 | dev->addr_len = sizeof(struct in6_addr); |
1346 | dev->features |= NETIF_F_NETNS_LOCAL; | ||
1344 | } | 1347 | } |
1345 | 1348 | ||
1346 | 1349 | ||