diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-07-21 04:44:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-21 13:39:06 -0400 |
commit | 34ae932a40369be6bd6ea97d66b6686361b4370d (patch) | |
tree | 765ecbb1edd6a2511462611501b412e703b1cdb0 /net/openvswitch/datapath.c | |
parent | 0dfbdf4102b9303d3ddf2177c0220098ff99f6de (diff) |
openvswitch: Make tunnel set action attach a metadata dst
Utilize the new metadata dst to attach encapsulation instructions to
the skb. The existing egress_tun_info via the OVS_CB() is left in
place until all tunnel vports have been converted to the new method.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r-- | net/openvswitch/datapath.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index ff8c4a4c1609..02082107c74c 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c | |||
@@ -1018,7 +1018,7 @@ static int ovs_flow_cmd_new(struct sk_buff *skb, struct genl_info *info) | |||
1018 | } | 1018 | } |
1019 | ovs_unlock(); | 1019 | ovs_unlock(); |
1020 | 1020 | ||
1021 | ovs_nla_free_flow_actions(old_acts); | 1021 | ovs_nla_free_flow_actions_rcu(old_acts); |
1022 | ovs_flow_free(new_flow, false); | 1022 | ovs_flow_free(new_flow, false); |
1023 | } | 1023 | } |
1024 | 1024 | ||
@@ -1030,7 +1030,7 @@ err_unlock_ovs: | |||
1030 | ovs_unlock(); | 1030 | ovs_unlock(); |
1031 | kfree_skb(reply); | 1031 | kfree_skb(reply); |
1032 | err_kfree_acts: | 1032 | err_kfree_acts: |
1033 | kfree(acts); | 1033 | ovs_nla_free_flow_actions(acts); |
1034 | err_kfree_flow: | 1034 | err_kfree_flow: |
1035 | ovs_flow_free(new_flow, false); | 1035 | ovs_flow_free(new_flow, false); |
1036 | error: | 1036 | error: |
@@ -1157,7 +1157,7 @@ static int ovs_flow_cmd_set(struct sk_buff *skb, struct genl_info *info) | |||
1157 | if (reply) | 1157 | if (reply) |
1158 | ovs_notify(&dp_flow_genl_family, reply, info); | 1158 | ovs_notify(&dp_flow_genl_family, reply, info); |
1159 | if (old_acts) | 1159 | if (old_acts) |
1160 | ovs_nla_free_flow_actions(old_acts); | 1160 | ovs_nla_free_flow_actions_rcu(old_acts); |
1161 | 1161 | ||
1162 | return 0; | 1162 | return 0; |
1163 | 1163 | ||
@@ -1165,7 +1165,7 @@ err_unlock_ovs: | |||
1165 | ovs_unlock(); | 1165 | ovs_unlock(); |
1166 | kfree_skb(reply); | 1166 | kfree_skb(reply); |
1167 | err_kfree_acts: | 1167 | err_kfree_acts: |
1168 | kfree(acts); | 1168 | ovs_nla_free_flow_actions(acts); |
1169 | error: | 1169 | error: |
1170 | return error; | 1170 | return error; |
1171 | } | 1171 | } |