alistair23-linux/net/l2tp
Guillaume Nault 2b139e6b1e l2tp: remove ->recv_payload_hook
The tunnel reception hook is only used by l2tp_ppp for skipping PPP
framing bytes. This is a session specific operation, but once a PPP
session sets ->recv_payload_hook on its tunnel, all frames received by
the tunnel will enter pppol2tp_recv_payload_hook(), including those
targeted at Ethernet sessions (an L2TPv3 tunnel can multiplex PPP and
Ethernet sessions).

So this mechanism is wrong, and uselessly complex. Let's just move this
functionality to the pppol2tp rx handler and drop ->recv_payload_hook.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-07-26 14:06:34 -07:00
..
Kconfig l2tp: Call udp_sock_create 2014-07-14 16:12:15 -07:00
l2tp_core.c l2tp: remove ->recv_payload_hook 2018-07-26 14:06:34 -07:00
l2tp_core.h l2tp: remove ->recv_payload_hook 2018-07-26 14:06:34 -07:00
l2tp_debugfs.c l2tp: remove .show from struct l2tp_tunnel 2018-06-26 22:55:51 +09:00
l2tp_eth.c l2tp: remove .tunnel_sock from struct l2tp_eth 2017-11-11 22:08:23 +09:00
l2tp_ip.c l2tp: remove ->recv_payload_hook 2018-07-26 14:06:34 -07:00
l2tp_ip6.c l2tp: remove ->recv_payload_hook 2018-07-26 14:06:34 -07:00
l2tp_netlink.c l2tp: reject creation of non-PPP sessions on L2TPv2 tunnels 2018-06-15 09:12:37 -07:00
l2tp_ppp.c l2tp: remove ->recv_payload_hook 2018-07-26 14:06:34 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00