]> 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)
commit1a7001a45bace694699397740e39683c6ca46d20
treeddf6ea21359c1042c117dc40dae8cdffdc631a60
parent4616ff6bc3d300507055e35eb9c098265b311bfc
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