diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2013-01-25 18:09:07 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2013-01-25 18:09:07 -0800 |
commit | fa54c2d93ba08c61e97b7e04d1bc0c132ad1d81d (patch) | |
tree | 0ca584939ae6c887fccbaa5f457b008c5d5c167d /datapath/flow.h | |
parent | d6e95e998a37a98c70dc7e91a4765c777dbc66cb (diff) | |
download | openvswitch-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.h | 5 |
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; |