diff options
| author | Thomas Graf <[email protected]> | 2015-07-21 08:44:03 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-07-21 17:39:06 +0000 |
| commit | 34ae932a40369be6bd6ea97d66b6686361b4370d (patch) | |
| tree | 765ecbb1edd6a2511462611501b412e703b1cdb0 /net/openvswitch/flow_table.c | |
| parent | vxlan: Factor out device configuration (diff) | |
| download | kernel-34ae932a40369be6bd6ea97d66b6686361b4370d.tar.gz kernel-34ae932a40369be6bd6ea97d66b6686361b4370d.zip | |
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 <[email protected]>
Signed-off-by: Pravin B Shelar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/openvswitch/flow_table.c')
| -rw-r--r-- | net/openvswitch/flow_table.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/openvswitch/flow_table.c b/net/openvswitch/flow_table.c index 4613df8c8290..b70d845e7efb 100644 --- a/net/openvswitch/flow_table.c +++ b/net/openvswitch/flow_table.c @@ -18,6 +18,7 @@ #include "flow.h" #include "datapath.h" +#include "flow_netlink.h" #include <linux/uaccess.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> @@ -143,7 +144,8 @@ static void flow_free(struct sw_flow *flow) if (ovs_identifier_is_key(&flow->id)) kfree(flow->id.unmasked_key); - kfree((struct sw_flow_actions __force *)flow->sf_acts); + if (flow->sf_acts) + ovs_nla_free_flow_actions((struct sw_flow_actions __force *)flow->sf_acts); for_each_node(node) if (flow->stats[node]) kmem_cache_free(flow_stats_cache, |
