Files
linux-stable-mirror/include/linux
Alexander Lobakin 117aef12a7 ip_tunnel: use a separate struct to store tunnel params in the kernel
Unlike IPv6 tunnels which use purely-kernel __ip6_tnl_parm structure
to store params inside the kernel, IPv4 tunnel code uses the same
ip_tunnel_parm which is being used to talk with the userspace.
This makes it difficult to alter or add any fields or use a
different format for whatever data.
Define struct ip_tunnel_parm_kern, a 1:1 copy of ip_tunnel_parm for
now, and use it throughout the code. Define the pieces, where the copy
user <-> kernel happens, as standalone functions, and copy the data
there field-by-field, so that the kernel-side structure could be easily
modified later on and the users wouldn't have to care about this.

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-04-01 10:49:28 +01:00
..
2024-03-07 21:52:03 +00:00
2024-03-18 10:32:44 +01:00
2024-03-11 15:37:23 -07:00
2024-03-07 20:37:04 +00:00
2024-03-12 23:08:29 -07:00
2024-03-04 17:01:18 -08:00
2024-03-07 09:36:08 +01:00
2024-03-10 14:38:04 -07:00
2024-03-13 18:38:13 -04:00
2024-03-06 13:04:18 -08:00
2024-03-09 09:14:51 -05:00
2024-03-09 09:14:50 -05:00
2024-03-26 11:07:20 -07:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-03-08 12:05:10 +01:00
2024-03-03 15:06:58 -08:00
2024-03-04 20:46:18 -08:00
2024-03-04 17:25:09 +01:00
2024-03-06 10:52:12 +01:00