diff options
author | Jesse Gross <jesse@nicira.com> | 2014-10-04 00:35:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-06 06:32:20 +0200 |
commit | f0b128c1e2cc33ad104daf0f51a51e34f7763c5f (patch) | |
tree | 41b08ab786ae83f1890cafb6847d1fd67884af5f /net/openvswitch/datapath.h | |
parent | openvswitch: Add support for matching on OAM packets. (diff) | |
download | linux-f0b128c1e2cc33ad104daf0f51a51e34f7763c5f.tar.xz linux-f0b128c1e2cc33ad104daf0f51a51e34f7763c5f.zip |
openvswitch: Wrap struct ovs_key_ipv4_tunnel in a new structure.
Currently, the flow information that is matched for tunnels and
the tunnel data passed around with packets is the same. However,
as additional information is added this is not necessarily desirable,
as in the case of pointers.
This adds a new structure for tunnel metadata which currently contains
only the existing struct. This change is purely internal to the kernel
since the current OVS_KEY_ATTR_IPV4_TUNNEL is simply a compressed version
of OVS_KEY_ATTR_TUNNEL that is translated at flow setup.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/datapath.h')
-rw-r--r-- | net/openvswitch/datapath.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h index ac3f3df96961..974135439c5c 100644 --- a/net/openvswitch/datapath.h +++ b/net/openvswitch/datapath.h @@ -102,8 +102,8 @@ struct datapath { */ struct ovs_skb_cb { struct sw_flow *flow; + struct ovs_tunnel_info *egress_tun_info; struct vport *input_vport; - struct ovs_key_ipv4_tunnel *egress_tun_key; }; #define OVS_CB(skb) ((struct ovs_skb_cb *)(skb)->cb) |