mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 08:36:27 +07:00
b194f30c61
The UDP tunnel config is asymmetric wrt. to the ports used. The source and destination ports from one direction of the tunnel are not related to the ports of the other direction. We need to be able to respond to ARP requests using the correct ports without involving routing. As the consequence, UDP ports need to be fixed property of the tunnel interface and cannot be set per route. Remove the ability to set ports per route. This is still okay to do, as no kernel has been released with these attributes yet. Note that the ability to specify source and destination ports is preserved for other users of the lwtunnel API which don't use routes for tunnel key specification (like openvswitch). If in the future we rework ARP handling to allow port specification, the attributes can be added back. Signed-off-by: Jiri Benc <jbenc@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
44 lines
789 B
C
44 lines
789 B
C
#ifndef _UAPI_LWTUNNEL_H_
|
|
#define _UAPI_LWTUNNEL_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
enum lwtunnel_encap_types {
|
|
LWTUNNEL_ENCAP_NONE,
|
|
LWTUNNEL_ENCAP_MPLS,
|
|
LWTUNNEL_ENCAP_IP,
|
|
LWTUNNEL_ENCAP_ILA,
|
|
LWTUNNEL_ENCAP_IP6,
|
|
__LWTUNNEL_ENCAP_MAX,
|
|
};
|
|
|
|
#define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1)
|
|
|
|
enum lwtunnel_ip_t {
|
|
LWTUNNEL_IP_UNSPEC,
|
|
LWTUNNEL_IP_ID,
|
|
LWTUNNEL_IP_DST,
|
|
LWTUNNEL_IP_SRC,
|
|
LWTUNNEL_IP_TTL,
|
|
LWTUNNEL_IP_TOS,
|
|
LWTUNNEL_IP_FLAGS,
|
|
__LWTUNNEL_IP_MAX,
|
|
};
|
|
|
|
#define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1)
|
|
|
|
enum lwtunnel_ip6_t {
|
|
LWTUNNEL_IP6_UNSPEC,
|
|
LWTUNNEL_IP6_ID,
|
|
LWTUNNEL_IP6_DST,
|
|
LWTUNNEL_IP6_SRC,
|
|
LWTUNNEL_IP6_HOPLIMIT,
|
|
LWTUNNEL_IP6_TC,
|
|
LWTUNNEL_IP6_FLAGS,
|
|
__LWTUNNEL_IP6_MAX,
|
|
};
|
|
|
|
#define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1)
|
|
|
|
#endif /* _UAPI_LWTUNNEL_H_ */
|