Wojciech Drewek
b20dc3c684
gtp: Allow to create GTP device without FDs
...
Currently, when the user wants to create GTP device, he has to
provide file handles to the sockets created in userspace (IFLA_GTP_FD0,
IFLA_GTP_FD1). This behaviour is not ideal, considering the option of
adding support for GTP device creation through ip link. Ip link
application is not a good place to create such sockets.
This patch allows to create GTP device without providing
IFLA_GTP_FD0 and IFLA_GTP_FD1 arguments. If the user sets
IFLA_GTP_CREATE_SOCKETS attribute, then GTP module takes care
of creating UDP sockets by itself. Sockets are created with the
commonly known UDP ports used for GTP protocol (GTP0_PORT and
GTP1U_PORT). In this case we don't have to provide encap_destroy
because no extra deinitialization is needed, everything is covered
by udp_tunnel_sock_release.
Note: GTP instance created with only this change applied, does
not handle GTP Echo Requests. This is implemented in the following
patch.
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com >
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com >
2022-03-11 08:27:16 -08:00
..
2021-09-14 08:46:08 +02:00
2021-12-21 15:09:46 -08:00
2022-03-10 09:23:45 +01:00
2021-09-13 14:51:10 -05:00
2021-08-23 09:49:09 -07:00
2022-02-10 17:29:56 -08:00
2021-10-02 15:50:45 -04:00
2021-07-28 13:19:31 +01:00
2021-10-05 16:14:10 +02:00
2021-11-01 13:36:08 +00:00
2021-12-20 14:53:27 -05:00
2022-03-03 14:38:49 +00:00
2021-11-11 17:41:11 -08:00
2022-01-03 15:09:42 +01:00
2021-10-29 12:38:43 +02:00
2021-07-12 15:17:47 -05:00
2021-09-14 20:05:26 -06:00
2021-07-12 09:16:29 +02:00
2021-11-26 16:48:59 +01:00
2021-10-17 10:53:52 +01:00
2021-09-07 11:39:01 -07:00
2022-01-26 14:49:46 +01:00
2021-10-01 14:28:55 +01:00
2021-10-18 12:28:53 -07:00
2021-08-10 13:32:40 -04:00
2022-02-23 20:33:05 -08:00
2021-11-22 12:31:47 +00:00
2021-12-15 15:57:31 +01:00
2021-08-02 13:37:28 -06:00
2021-12-14 11:09:36 +01:00
2021-10-07 13:51:11 +02:00
2021-10-06 12:05:51 +00:00
2021-11-15 07:53:10 -08:00
2021-11-15 07:53:10 -08:00
2022-01-05 13:11:22 +05:30
2022-02-18 21:20:06 -08:00
2021-07-29 15:06:50 +01:00
2021-08-20 15:00:35 +01:00
2022-03-01 18:29:27 -08:00
2022-03-11 08:27:16 -08:00
2021-07-21 08:14:33 -07:00
2021-08-05 11:46:42 +01:00
2022-03-03 18:44:21 -08:00
2021-11-24 11:17:53 -07:00
2021-07-21 08:14:33 -07:00
2022-02-04 20:24:45 -08:00
2021-07-21 08:14:33 -07:00
2021-08-18 07:23:15 -06:00
2021-11-01 19:57:14 -07:00
2021-10-05 06:54:16 -05:00
2021-11-01 19:57:14 -07:00
2021-08-06 16:12:32 -04:00
2022-01-11 15:44:27 -05:00
2022-02-22 09:06:54 -05:00
2021-07-21 08:14:33 -07:00
2022-02-21 14:57:26 +01:00
2021-10-21 23:36:28 +02:00
2022-02-09 12:00:11 +00:00
2021-10-25 14:04:18 +01:00
2021-09-03 09:58:17 -07:00
2022-01-11 18:45:02 -08:00
2021-07-26 14:45:18 +02:00
2022-03-08 22:06:11 -08:00
2022-02-19 16:05:54 +00:00
2021-06-30 15:34:04 -06:00
2021-10-12 11:27:47 +01:00
2022-02-09 17:25:57 -08:00
2021-12-29 12:31:36 -08:00
2021-10-14 23:06:28 +02:00
2021-12-27 14:58:37 +00:00
2021-09-14 11:11:20 +02:00
2021-10-21 17:25:17 +02:00
2022-01-04 15:50:23 +01:00
2022-03-10 20:14:52 -08:00
2022-01-16 08:08:11 +02:00
2021-07-06 10:37:46 -05:00
2022-02-02 13:11:40 +01:00
2021-12-23 09:32:51 +01:00
2021-12-27 17:12:58 +01:00
2021-12-19 14:08:48 +00:00
2021-10-20 15:24:36 -07:00
2022-01-15 16:30:27 +02:00
2021-12-10 17:10:55 -08:00
2021-10-18 17:20:50 +02:00
2022-03-03 10:37:23 +00:00
2021-06-22 11:28:51 -07:00
2021-06-28 12:49:52 -07:00
2021-07-27 12:05:46 +02:00
2022-02-02 07:42:41 -08:00
2022-02-11 11:14:58 +00:00
2021-12-01 19:06:09 -08:00
2022-01-31 15:05:25 +00:00
2022-01-08 17:41:00 +09:00
2021-10-18 12:28:52 -07:00
2021-11-01 19:57:14 -07:00
2021-08-03 07:27:42 -04:00
2022-01-20 08:52:55 +02:00
2021-09-16 14:36:26 +01:00
2021-11-23 11:47:51 +00:00
2021-06-30 20:47:27 -07:00
2022-01-20 08:52:54 +02:00
2021-11-22 07:44:55 +00:00
2022-01-14 18:50:54 -05:00
2021-09-06 07:20:58 -04:00
2021-11-22 07:44:55 +00:00
2021-11-04 16:36:54 +01:00
2021-09-29 09:22:29 +02:00
2021-11-01 05:26:48 -04:00
2021-09-11 14:48:42 -07:00
2021-12-06 15:03:05 +01:00
2021-11-10 15:32:38 +01:00
2021-08-26 22:28:03 +02:00
2021-08-05 10:24:08 +01:00
2021-09-05 16:23:09 -04:00
2021-10-08 16:21:53 +01:00
2022-02-09 09:00:40 +01:00