]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: allow netns create of lowpan interface
authorAlexander Aring <aar@pengutronix.de>
Sat, 18 Jun 2016 08:45:35 +0000 (10:45 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 8 Jul 2016 10:20:57 +0000 (12:20 +0200)
commit0267e8510cd03d8c3a723f92e9ba7b4dd5e7d35d
tree7706441c52848fe4690b5a451f15c803b428687f
parent1d0aade1438e9ce3819f0618a64ffb6e8c1d8af4
ieee802154: allow netns create of lowpan interface

This patch reverts commit 572bd5cd195c ("ieee802154: fix netns settings").
The lowpan interface need to be created inside the net namespace where
the wpan interface is available. The wpan namespace can be changed only
by nl802154 before. Without this patch it's not possible to create a
lowpan interface for a wpan interface which isn't inside init_net
namespace.

Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan/core.c