]> git.baikalelectronics.ru Git - kernel.git/commit
net: add a new ndo_tunnel_ioctl method
authorChristoph Hellwig <hch@lst.de>
Tue, 19 May 2020 13:03:13 +0000 (15:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2020 22:45:11 +0000 (15:45 -0700)
commit53893493877033803bd40ce6ab0de62e5c0ac153
tree25cf11dce13ddc9c82fb0f3f2f886c697b46227e
parent2f40fda3ae3a66b3d909bc6b8e01de138a3b353d
net: add a new ndo_tunnel_ioctl method

This method is used to properly allow kernel callers of the IPv4 route
management ioctls.  The exsting ip_tunnel_ioctl helper is renamed to
ip_tunnel_ctl to better reflect that it doesn't directly implement ioctls
touching user memory, and is used for the guts of ndo_tunnel_ctl
implementations. A new ip_tunnel_ioctl helper is added that can be wired
up directly to the ndo_do_ioctl method and takes care of the copy to and
from userspace.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/ip_tunnels.h
net/ipv4/ip_gre.c
net/ipv4/ip_tunnel.c
net/ipv4/ip_vti.c
net/ipv4/ipip.c