]> git.proxmox.com Git - mirror_ovs.git/commit - ofproto/ofproto.c
ofproto: Move tun_table and vl_mff_map deletion.
authorYi-Hung Wei <yihung.wei@gmail.com>
Mon, 13 Mar 2017 18:28:22 +0000 (11:28 -0700)
committerJoe Stringer <joe@ovn.org>
Wed, 15 Mar 2017 21:45:41 +0000 (14:45 -0700)
commita70436a36aff359b0fa8400e46b4a4943a5d9083
tree5b8407339aebad5aebe8e7ecd17c5fa75daf78a1
parent5c7c16d896137382783818ebd65af2ff89fc6919
ofproto: Move tun_table and vl_mff_map deletion.

In this patch, we move the tun_table and vl_mff_map deletion in
ofproto_destory__() to be in the following order.
    1. Delete all the flows.
    2. Delete vl_mff_map.
    3. Delete tun_table.
The rationale behind this order is that a flow may use a variable length
mf_field, and a variable length mf_field is defined by a TLV mapping
in tun_table.

Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Joe Stringer <joe@ovn.org>
ofproto/ofproto.c