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:10:13 -0800 |
commit | 0d88f017c41e3bf9152f93d60d0fa179b42c2bdc (patch) | |
tree | 91089630e9b5f58cfe2d433c86a1d08fac4ecd7e /datapath/flow.h | |
parent | a7f757874af0657709934db48a1e8239e4f31b74 (diff) |
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 4bc185b0..924d99a7 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; |