X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Ftunnel.h;h=e7bafbc94699a8a29a61f2d58ba3131ddf7d747e;hb=0e70cdcb8ddeb20417e682fd63769f9d16601b07;hp=b3e21fa9f3006904518515410e915452fc0de419;hpb=f686a33af8cb41ee228e6a35410c9a488fba3eb1;p=openvswitch diff --git a/datapath/tunnel.h b/datapath/tunnel.h index b3e21fa9..e7bafbc9 100644 --- a/datapath/tunnel.h +++ b/datapath/tunnel.h @@ -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_*