diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-01-21 15:55:15 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 15:55:15 -0800 |
commit | 4e9fb8016a351b5b9da7fea32bcfdbc9d836e421 (patch) | |
tree | d8cce017f0327cef58f9caa9fea92f9ebd6e263f /drivers/net/pppox.c | |
parent | a6bcf1c1d38e0672db35e0d9f2504ac04ddf3ed5 (diff) |
net: pppol2tp - introduce net-namespace functionality
- Each tunnel and appropriate lock are inside own namespace now.
- pppox code allows to create per-namespace sockets for
both PX_PROTO_OE and PX_PROTO_OL2TP protocols. Actually since
now pppox_create support net-namespaces new PPPo... protocols
(if they ever will be) should support net-namespace too otherwise
explicit check for &init_net would be needed.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pppox.c')
-rw-r--r-- | drivers/net/pppox.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/pppox.c b/drivers/net/pppox.c index ee9d3cf81beb..4f6d33fbc673 100644 --- a/drivers/net/pppox.c +++ b/drivers/net/pppox.c @@ -111,10 +111,6 @@ static int pppox_create(struct net *net, struct socket *sock, int protocol) if (protocol < 0 || protocol > PX_MAX_PROTO) goto out; - /* we support net-namespaces for PPPoE only (yet) */ - if (protocol != PX_PROTO_OE && net != &init_net) - return -EAFNOSUPPORT; - rc = -EPROTONOSUPPORT; if (!pppox_protos[protocol]) request_module("pppox-proto-%d", protocol); |