summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-08-11 22:13:49 +0300
committerDavid S. Miller <davem@davemloft.net>2018-08-11 22:13:49 +0300
commit3305f9a90524c8e9e59f29a62312c10ab00a7364 (patch)
treec7de707b44900ecbd33e1ca3c2b178988d0e5698 /tools
parent8a8982d1e2137aa020dd9fbc96b5e3c4fd871d0c (diff)
parent4f5f85e9a70e13c8919e26609914253d18fbf858 (diff)
downloadlinux-3305f9a90524c8e9e59f29a62312c10ab00a7364.tar.xz
Merge branch 'l2tp-rework-pppol2tp-ioctl-handling'
Guillaume Nault says: ==================== l2tp: rework pppol2tp ioctl handling The current ioctl() handling code can be simplified. It tests for non-relevant conditions and uselessly holds sockets. Once useless code is removed, it becomes even simpler to let pppol2tp_ioctl() handle commands directly, rather than dispatch them to pppol2tp_tunnel_ioctl() or pppol2tp_session_ioctl(). That is the approach taken by this series. Patch #1 and #2 define helper functions aimed at simplifying the rest of the patch set. Patch #3 drops useless tests in pppol2p_ioctl() and avoid holding a refcount on the socket. Patches #4, #5 and #6 are the core of the series. They let pppol2tp_ioctl() handle all ioctls and drop the tunnel and session specific functions. Then patch #6 brings a little bit of consolidation. Finally, patch #7 takes advantage of the simplified code to make pppol2tp sockets compatible with dev_ioctl(). Certainly not a killer feature, but it is trivial and it is always nice to see l2tp getting better integration with the rest of the stack. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions