X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fopenvswitch%2Ftunnel.h;h=d545e40e3e434db298110fb91b5cc36d296f5b17;hb=406e37ecf554529e9380ef06863d85ccc94009d1;hp=dd700d0dc006960a7e49d44600c55c68523a8314;hpb=842cf6f472b236b6e61be04b41970116245b1759;p=openvswitch diff --git a/include/openvswitch/tunnel.h b/include/openvswitch/tunnel.h index dd700d0d..d545e40e 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. */ @@ -50,14 +51,15 @@ #define TNL_F_PMTUD (1 << 6) /* Enable path MTU discovery. */ #define TNL_F_HDR_CACHE (1 << 7) /* Enable tunnel header caching. */ +/* 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 */