]> git.proxmox.com Git - mirror_ovs.git/commit
netdev: Free ifidx mapping in netdev_ports_remove().
authorJoe Stringer <joe@ovn.org>
Thu, 10 Aug 2017 00:18:22 +0000 (17:18 -0700)
committerJoe Stringer <joe@ovn.org>
Fri, 11 Aug 2017 16:46:54 +0000 (09:46 -0700)
commitc8d0f32a6045af69aefd72c35b2eb92dd972288f
tree2b4d2d2a6befeea8f0b37a00277a2b63b776dd6c
parent0b31b69fea1b86dee71e292342ec607ff5821e31
netdev: Free ifidx mapping in netdev_ports_remove().

Previously, netdev_ports_insert() would allocate and insert an
ifindex->odp_port mapping, but netdev_ports_remove() would never remove
the mapping or free the mapping structure. This patch fixes these up.

Fixes: 32b77c316d9982("dpif: Save added ports in a port map.")
Reported-by: Andy Zhou <azhou@ovn.org>
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
lib/netdev.c