Message ID | 20161203021418.103114-2-diproiettod@vmware.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 1400511..6791916 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -3330,6 +3330,7 @@ dp_netdev_destroy_pmd(struct dp_netdev_pmd_thread *pmd) /* All flows (including their dpcls_rules) have been deleted already */ CMAP_FOR_EACH (cls, node, &pmd->classifiers) { dpcls_destroy(cls); + ovsrcu_postpone(free, cls); } cmap_destroy(&pmd->classifiers); cmap_destroy(&pmd->flow_table);
We keep all the per-port classifiers around, since they can be reused, but when a pmd thread is destroyed we should free them. Found using valgrind. Fixes: 3453b4d62a98("dpif-netdev: dpcls per in_port with sorted subtables") Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com> --- lib/dpif-netdev.c | 1 + 1 file changed, 1 insertion(+)