]> git.proxmox.com Git - mirror_ovs.git/commit
dpif-netdev: Flush offload rules upon port deletion.
authorEli Britstein <elibr@nvidia.com>
Mon, 28 Dec 2020 10:19:00 +0000 (10:19 +0000)
committerIlya Maximets <i.maximets@ovn.org>
Fri, 15 Jan 2021 18:01:00 +0000 (19:01 +0100)
commit62d1c28e9ce0f1fd7e8f765c4d004e9d764752f7
treeb2e46c5fa07c9c6c1f7863cfde2e369cc62b3a7e
parent1178df2d189bce3f6f106518dddf321d81c252ab
dpif-netdev: Flush offload rules upon port deletion.

When a port is deleted, flow deletion requests are posted, and the netdev
is removed from offload netdevs map. Following flow deletion handling may
be done after the netdev has already been removed from the offload
netdevs map, so the HW rule is not removed and the data object is not
freed (memory leak). Flush offload rules upon port deletion, and disable
pending handling of offloads to fix it.

Signed-off-by: Eli Britstein <elibr@nvidia.com>
Reviewed-by: Gaetan Rivet <gaetanr@nvidia.com>
Acked-by: Emma Finn <emma.finn@intel.com>
Tested-by: Emma Finn <emma.finn@intel.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
lib/dpif-netdev.c