X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fopenvswitch%2Ftunnel.h;h=44facfae6cc10b423e74ce6d9c944d388ef0dccc;hb=3b62feba9839bc341770ac7540976e6afd7d905b;hp=373797513333f9bb0e077cf42d48664511b4a0fa;hpb=d1eb60ccff0c2dbef2300cdfc5fead3c2d394beb;p=openvswitch diff --git a/include/openvswitch/tunnel.h b/include/openvswitch/tunnel.h index 37379751..44facfae 100644 --- a/include/openvswitch/tunnel.h +++ b/include/openvswitch/tunnel.h @@ -41,6 +41,7 @@ #define OPENVSWITCH_TUNNEL_H 1 #include +#include "openvswitch/datapath-protocol.h" #define TNL_F_CSUM (1 << 1) /* Checksum packets. */ #define TNL_F_IN_KEY_MATCH (1 << 2) /* Store the key in tun_id to match in flow table. */ @@ -48,15 +49,18 @@ #define TNL_F_TOS_INHERIT (1 << 4) /* Inherit the ToS from the inner packet. */ #define TNL_F_TTL_INHERIT (1 << 5) /* Inherit the TTL from the inner packet. */ #define TNL_F_PMTUD (1 << 6) /* Enable path MTU discovery. */ +#define TNL_F_HDR_CACHE (1 << 7) /* Enable tunnel header caching. */ +#define TNL_F_IPSEC (1 << 8) /* Traffic is IPsec encrypted. */ +/* This goes in the "config" member of struct odp_port for tunnel vports. */ struct tnl_port_config { - __u32 flags; - __be32 saddr; - __be32 daddr; - __be32 in_key; - __be32 out_key; - __u8 tos; - __u8 ttl; + __aligned_be64 in_key; + __aligned_be64 out_key; + __u32 flags; + __be32 saddr; + __be32 daddr; + __u8 tos; + __u8 ttl; }; #endif /* openvswitch/tunnel.h */