diff options
author | Wojciech Drewek <wojciech.drewek@intel.com> | 2022-03-04 17:40:42 +0100 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2022-03-11 08:27:16 -0800 |
commit | b20dc3c684580ddc07eb48ee3c3dc7597cd5eebf (patch) | |
tree | 1c275c6fba7ff5629985a235d05f0659c3b1b33a /include/net/gtp.h | |
parent | 59d5923536ac8640f4ff20d011a4851a3c143764 (diff) | |
download | lwn-b20dc3c684580ddc07eb48ee3c3dc7597cd5eebf.tar.gz lwn-b20dc3c684580ddc07eb48ee3c3dc7597cd5eebf.zip |
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>
Diffstat (limited to 'include/net/gtp.h')
0 files changed, 0 insertions, 0 deletions