aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/flow.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2015-07-21 04:43:54 -0400
committerDavid S. Miller <davem@davemloft.net>2015-07-21 13:39:05 -0400
commit1d8fff907342d2339796dbd27ea47d0e76a6a2d0 (patch)
tree0c8e93fba52efc6e893e7c3ceb2f45091dcdf936 /net/openvswitch/flow.c
parente3e4712ec0961ed586a8db340bd994c4ad7f5dba (diff)
ip_tunnel: Make ovs_tunnel_info and ovs_key_ipv4_tunnel generic
Rename the tunnel metadata data structures currently internal to OVS and make them generic for use by all IP tunnels. Both structures are kernel internal and will stay that way. Their members are exposed to user space through individual Netlink attributes by OVS. It will therefore be possible to extend/modify these structures without affecting user ABI. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/flow.c')
-rw-r--r--net/openvswitch/flow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c
index bc7b0aba994a..8db22ef73626 100644
--- a/net/openvswitch/flow.c
+++ b/net/openvswitch/flow.c
@@ -682,12 +682,12 @@ int ovs_flow_key_update(struct sk_buff *skb, struct sw_flow_key *key)
682 return key_extract(skb, key); 682 return key_extract(skb, key);
683} 683}
684 684
685int ovs_flow_key_extract(const struct ovs_tunnel_info *tun_info, 685int ovs_flow_key_extract(const struct ip_tunnel_info *tun_info,
686 struct sk_buff *skb, struct sw_flow_key *key) 686 struct sk_buff *skb, struct sw_flow_key *key)
687{ 687{
688 /* Extract metadata from packet. */ 688 /* Extract metadata from packet. */
689 if (tun_info) { 689 if (tun_info) {
690 memcpy(&key->tun_key, &tun_info->tunnel, sizeof(key->tun_key)); 690 memcpy(&key->tun_key, &tun_info->key, sizeof(key->tun_key));
691 691
692 if (tun_info->options) { 692 if (tun_info->options) {
693 BUILD_BUG_ON((1 << (sizeof(tun_info->options_len) * 693 BUILD_BUG_ON((1 << (sizeof(tun_info->options_len) *