summaryrefslogtreecommitdiff
path: root/datapath/flow.h
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2013-01-25 18:09:07 -0800
committerPravin B Shelar <pshelar@nicira.com>2013-01-25 18:09:07 -0800
commitfa54c2d93ba08c61e97b7e04d1bc0c132ad1d81d (patch)
tree0ca584939ae6c887fccbaa5f457b008c5d5c167d /datapath/flow.h
parentd6e95e998a37a98c70dc7e91a4765c777dbc66cb (diff)
downloadopenvswitch-fa54c2d93ba08c61e97b7e04d1bc0c132ad1d81d.tar.gz
datapath: Clear struct ovs_key_ipv4_tunnel padding.
Following patch memset ovs_key_ipv4_tunnel padding area so that packets from a flow would be mapped to same flow in kernel datapath flow table. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com> Bug #14843
Diffstat (limited to 'datapath/flow.h')
-rw-r--r--datapath/flow.h5
1 files changed, 5 insertions, 0 deletions
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;