diff options
author | Beniamino Galvani <[email protected]> | 2023-10-20 13:55:27 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-10-23 08:48:57 +0100 |
commit | 946fcfdbc5b97e26d31339ebca2d9a51a4f975ff (patch) | |
tree | a3dc11694aa04984f0958886eca2527cd7413483 /net/ipv4/tcp_input.c | |
parent | 7e937dcf96d0489b3cdd1cff9dfd049617d28492 (diff) |
ipv6: add new arguments to udp_tunnel6_dst_lookup()
We want to make the function more generic so that it can be used by
other UDP tunnel implementations such as geneve and vxlan. To do that,
add the following arguments:
- source and destination UDP port;
- ifindex of the output interface, needed by vxlan;
- the tos, because in some cases it is not taken from struct
ip_tunnel_info (for example, when it's inherited from the inner
packet);
- the dst cache, because not all tunnel types (e.g. vxlan) want to
use the one from struct ip_tunnel_info.
With these parameters, the function no longer needs the full struct
ip_tunnel_info as argument and we can pass only the relevant part of
it (struct ip_tunnel_key).
This is similar to what already done for IPv4 in commit 72fc68c6356b
("ipv4: add new arguments to udp_tunnel_dst_lookup()").
Suggested-by: Guillaume Nault <[email protected]>
Signed-off-by: Beniamino Galvani <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions