Skip to content

L2TP: Introduce PPP-over-L2TP driver

James Chapman netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5UDP: Introduce UDP encapsulation type for L2TPinclude/linux/udp.h net/ipv4/udp.c+29 -42 replies
2/5L2TP: Changes to existing ppp and socket kernel headers for L2TPinclude/linux/Kbuild include/linux/if_ppp.h include/linux/if_pppol2tp.h +2 more+101 -22 replies
3/5L2TP: PPP over L2TP driver coredrivers/net/Kconfig drivers/net/Makefile drivers/net/pppol2tp.c+2500 -01 reply
4/5L2TP: Add PPPoL2TP maintainerMAINTAINERS+5 -01 reply
5/5L2TP: Add PPPoL2TP in-kernel documentationDocumentation/networking/l2tp.txt+169 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5 2.6.22-rc6] L2TP: Introduce PPP-over-L2TP driver

This patch set adds a driver for PPP over L2TP. Patches to follow.

The following changes have been made since the previous version submitted 26-MAY-07.

- Add new encap_rcv field to struct udp_sock in udp.h for use by encapsulated sockets. This is set to a protocol specific receive handler for encap sockets. This is instead of the global funcptr that was in the previous version.

- Rebased to 2.6.22-rc6.

- Update SOL_PPPOL2TP value to avoid clash with RxRPC.

- Move pppol2tp.h into the api-changes patch so that the patch can be applied in isolation.

- Update core driver to use skb_transport_header() and skb_network_header() functions rather than the old skb->h and skb->nh fields.

About this patch series:

The implementation uses the existing PPPoX subsystem that is currently used only by PPPoE. A userspace daemon handles all L2TP control protocol messages, while a PPPoX socket carries user data. The system architecture is similar to PPPoE, where a pppd plugin uses the PPPoX socket to send/receive PPP frames over an L2TP tunnel. PPP control frames are delivered to pppd while data frames are handled entirely by the kernel.

There are 5 patches in the series:-

1 - Introduce new UDP encapsulation type for L2TP.

2 - API changes for L2TP. Adds definitions for L2TP in existing headers.

3 - pppol2tp driver core. New code. Requires patches 1, 2, and the
recently applied skb_queue_walk_safe patch.

4 - Add an entry to MAINTAINERS file for this driver.

5 - Add in-kernel documentation.

The driver is being used on x86, ia64, ppc, arm, mips32 and possibly other architectures. It is also known to work on multi-core SMP boxes.

--
James Chapman
Katalix Systems Ltd
http://www.katalix.com
Catalysts for your Embedded Linux software development