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-21 13:21:31 -07:00
2024-03-27 10:25:54 +00:00
2024-03-14 10:22:26 -07:00
2024-03-05 13:59:43 +00:00
2024-03-14 10:29:47 -07:00
2024-03-15 13:21:13 -07:00
2024-03-05 12:57:45 +01:00
2024-03-21 15:09:29 -07:00
2024-03-21 12:35:20 -07:00
2024-03-14 10:44:09 -07:00
2024-03-15 09:00:09 -07:00
2024-03-21 12:44:10 -07:00
2024-03-15 12:22:52 -07:00
2024-03-14 11:10:43 -07:00
2024-03-16 11:44:00 -07:00
2024-03-21 12:35:20 -07:00
2024-03-16 10:04:12 -07:00
2024-03-08 15:26:46 -06:00
2024-04-01 10:49:28 +01:00
2024-04-01 10:49:27 +01:00
2024-03-11 11:43:44 -07:00
2024-03-11 11:43:44 -07:00
2024-03-18 10:32:44 +01:00
2024-03-11 15:37:23 -07:00
2024-03-11 15:37:24 -07:00
2024-03-19 23:05:34 -07:00
2024-03-02 09:15:01 -08:00
2024-03-13 12:36:21 -07:00
2024-03-12 10:14:22 -07:00
2024-03-28 18:50:47 -07:00
2024-03-11 19:53:15 -07:00
2024-03-22 10:22:45 -07:00
2024-03-21 13:34:15 -07:00
2024-03-19 11:57:26 -07:00
2024-04-01 10:49:28 +01:00
2024-03-17 13:34:00 +11:00
2024-03-11 09:38:17 -07:00
2024-03-07 20:37:04 +00:00
2024-03-07 10:29:36 -08:00
2024-03-08 10:23:26 +00:00
2024-03-14 17:43:30 -07:00
2024-03-12 23:08:29 -07:00
2024-03-12 18:25:17 -07:00
2024-03-22 10:09:08 -07:00
2024-03-25 09:10:51 -07:00
2024-03-07 22:02:12 +00:00
2024-03-16 08:29:48 +01:00
2024-03-15 09:00:09 -07:00
2024-03-06 13:13:05 +01:00
2024-03-18 10:33:06 -04:00
2024-03-13 00:03:21 -07:00
2024-03-07 22:10:01 +00:00
2024-03-13 21:22:26 -04:00
2024-03-04 17:01:18 -08:00
2024-03-14 17:43:30 -07:00
2024-03-07 21:42:38 +00:00
2024-03-04 17:01:20 -08:00
2024-03-06 13:04:17 -08:00
2024-03-07 09:36:08 +01:00
2024-03-10 14:38:04 -07:00
2024-03-08 07:56:27 -07:00
2024-03-11 16:58:10 +01:00
2024-03-08 09:05:59 +01:00
2024-03-18 10:33:06 -04:00
2024-03-15 13:03:13 -07:00
2024-03-07 08:48:03 +00:00
2024-03-07 08:48:03 +00:00
2024-03-07 08:45:31 +00:00
2024-03-07 08:48:14 +00:00
2024-04-01 10:49:27 +01:00
2024-03-14 11:31:26 -04:00
2024-03-04 17:01:25 -08:00
2024-03-16 10:04:12 -07:00
2024-03-13 18:38:13 -04:00
2024-03-06 13:04:18 -08:00
2024-03-22 10:41:13 -07:00
2024-03-26 11:07:22 -07:00
2024-03-06 13:04:18 -08:00
2024-03-06 13:04:18 -08:00
2024-03-04 17:01:27 -08:00
2024-04-01 10:49:28 +01:00
2024-03-09 09:14:51 -05:00
2024-03-09 09:14:50 -05:00
2024-03-12 13:09:23 -07:00
2024-03-12 12:34:11 -07:00
2024-03-01 12:23:44 +01:00
2024-03-02 15:18:08 -08:00
2024-03-11 11:43:44 -07:00
2024-03-19 11:57:26 -07:00
2024-03-22 19:42:20 +08:00
2024-03-22 16:25:31 -07:00
2024-03-06 13:04:17 -08:00
2024-03-04 17:01:20 -08:00
2024-03-06 13:04:18 -08:00
2024-03-26 11:07:20 -07:00
2024-03-14 10:58:27 -07:00
2024-03-06 13:04:19 -08:00
2024-03-28 19:21:33 -07:00
2024-03-28 19:21:33 -07:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-03-11 10:39:24 +05:30
2024-03-06 00:39:45 +01:00
2024-03-01 12:23:44 +01:00
2024-03-07 22:07:26 +00:00
2024-03-20 21:05:42 -07:00
2024-03-12 12:44:48 -04:00
2024-03-08 12:05:10 +01:00
2024-03-15 09:00:09 -07:00
2024-03-13 11:40:06 -07:00
2024-03-14 11:31:26 -04:00
2024-03-05 13:38:28 +00:00
2024-03-03 15:06:58 -08:00
2024-03-13 14:30:58 -07:00
2024-03-28 18:30:40 -07:00
2024-03-12 20:32:19 -07:00
2024-03-07 20:21:39 +00:00
2024-03-11 19:37:56 -07:00
2024-03-14 16:48:53 -07:00
2024-03-12 14:49:30 -07:00
2024-03-14 17:43:30 -07:00
2024-03-14 11:31:26 -04:00
2024-03-04 20:46:18 -08:00
2024-03-04 17:25:09 +01:00
2024-03-11 19:53:15 -07:00
2024-03-27 07:52:34 -07:00
2024-03-06 13:27:00 -05:00
2024-03-18 10:33:06 -04:00
2024-03-07 21:52:59 +00:00
2024-03-06 10:52:12 +01:00
2024-03-19 02:45:51 -04:00
2024-03-11 13:08:52 -06:00
2024-03-14 17:43:30 -07:00
2024-03-12 12:47:35 +02:00