]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit79c441ae505ccfaed9d80df95e83fb2573f23f8e
treeddf6ea21359c1042c117dc40dae8cdffdc631a60
parent542a64c7076565d73eea39057113914e1607db30
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