]> git.baikalelectronics.ru Git - kernel.git/commit
ppp: implement x-netns support
authorGuillaume Nault <g.nault@alphalink.fr>
Mon, 24 Aug 2015 09:35:30 +0000 (11:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2015 21:11:20 +0000 (14:11 -0700)
commit419403d8c58680dc1284b73039c4ce65aa899df5
treeddf6ea21359c1042c117dc40dae8cdffdc631a60
parent02a897f7021cf608cc7fbca191d0b3ae0704074d
ppp: implement x-netns support

Let packets move from one netns to the other at PPP encapsulation and
decapsulation time.

PPP units and channels remain in the netns in which they were
originally created. Only the net_device may move to a different
namespace. Cross netns handling is thus transparent to lower PPP
layers (PPPoE, L2TP, etc.).

PPP devices are automatically unregistered when their netns gets
removed. So read() and poll() on the unit file descriptor will
respectively receive EOF and POLLHUP. Channels aren't affected.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_generic.c