summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-07-09 17:42:45 -0700
committerDavid S. Miller <davem@davemloft.net>2020-07-10 13:54:00 -0700
commit84a4160e5a5951357947ad296932b433de3e34a0 (patch)
tree3aba5d7c3c00a283115b2ec727b6124414f2dd71
parenta2b992c828f7651db369ba8f0eb0818d70232636 (diff)
downloadlinux-84a4160e5a5951357947ad296932b433de3e34a0.tar.gz
linux-84a4160e5a5951357947ad296932b433de3e34a0.tar.bz2
linux-84a4160e5a5951357947ad296932b433de3e34a0.zip
udp_tunnel: re-number the offload tunnel types
Make it possible to use tunnel types as flags more easily. There doesn't appear to be any user using the type as an array index, so this should make no difference. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/udp_tunnel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/udp_tunnel.h b/include/net/udp_tunnel.h
index e7312ceb2794..0615e25f041c 100644
--- a/include/net/udp_tunnel.h
+++ b/include/net/udp_tunnel.h
@@ -106,9 +106,9 @@ void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
* call this function to perform Tx offloads on outgoing traffic.
*/
enum udp_parsable_tunnel_type {
- UDP_TUNNEL_TYPE_VXLAN, /* RFC 7348 */
- UDP_TUNNEL_TYPE_GENEVE, /* draft-ietf-nvo3-geneve */
- UDP_TUNNEL_TYPE_VXLAN_GPE, /* draft-ietf-nvo3-vxlan-gpe */
+ UDP_TUNNEL_TYPE_VXLAN = BIT(0), /* RFC 7348 */
+ UDP_TUNNEL_TYPE_GENEVE = BIT(1), /* draft-ietf-nvo3-geneve */
+ UDP_TUNNEL_TYPE_VXLAN_GPE = BIT(2), /* draft-ietf-nvo3-vxlan-gpe */
};
struct udp_tunnel_info {