dpif-linux: Use get_32aligned_u64() in an appropriate place.
[openvswitch] / datapath / tunnel.h
index b3e21fa9f3006904518515410e915452fc0de419..e7bafbc94699a8a29a61f2d58ba3131ddf7d747e 100644 (file)
@@ -58,6 +58,9 @@ struct port_lookup_key {
        u32    tunnel_type;
 };
 
+#define PORT_KEY_LEN   (offsetof(struct port_lookup_key, tunnel_type) + \
+                        FIELD_SIZEOF(struct port_lookup_key, tunnel_type))
+
 /**
  * struct tnl_mutable_config - modifiable configuration for a tunnel.
  * @key: Used as key for tunnel port.  Configured via OVS_TUNNEL_ATTR_*