]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
tun: There is no longer any need to deny changing network namespaces
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 20 Jan 2009 11:08:46 +0000 (11:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jan 2009 00:00:47 +0000 (16:00 -0800)
With the awkward case between free_netdev and dev_chr_close fixed
there is no longer any need to limit tun and tap devices to the
network namespace they were created in.  So remove the
NETIF_F_NETNS_LOCAL flag on the network device.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c

index 51dba6192bab5ac3f3bdee3459f38c17e64b10b7..97b050015f5ec0dedbb33c66bed3b53491a92188 100644 (file)
@@ -810,7 +810,6 @@ static void tun_setup(struct net_device *dev)
 
        dev->ethtool_ops = &tun_ethtool_ops;
        dev->destructor = free_netdev;
-       dev->features |= NETIF_F_NETNS_LOCAL;
 }
 
 static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)