X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fflow.h;h=694964051947c901c0937f1348ceec1966793052;hb=fa54c2d93ba08c61e97b7e04d1bc0c132ad1d81d;hp=dab69809563f13ede789a12231e97ce1b77a8542;hpb=d6e95e998a37a98c70dc7e91a4765c777dbc66cb;p=sliver-openvswitch.git diff --git a/datapath/flow.h b/datapath/flow.h index dab698095..694964051 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -45,6 +45,11 @@ struct sw_flow_actions { #define OVS_TNL_F_CSUM (1 << 1) #define OVS_TNL_F_KEY (1 << 2) +/* Used to memset ovs_key_ipv4_tunnel padding. */ +#define OVS_TUNNEL_KEY_SIZE \ + (offsetof(struct ovs_key_ipv4_tunnel, ipv4_ttl) + \ + FIELD_SIZEOF(struct ovs_key_ipv4_tunnel, ipv4_ttl)) + struct ovs_key_ipv4_tunnel { __be64 tun_id; __be32 ipv4_src;