]> git.proxmox.com Git - ovs.git/commitdiff
revalidator: Don't delete non-existent flow.
authorJoe Stringer <joestringer@nicira.com>
Wed, 10 Dec 2014 19:20:10 +0000 (11:20 -0800)
committerJoe Stringer <joestringer@nicira.com>
Wed, 17 Dec 2014 18:24:47 +0000 (10:24 -0800)
If ukey_acquire() returns ENOENT, then it is unable to locate the ukey
corresponding to the flow and the flow has disappeared since it was
dumped. Don't bother deleting the flow in this case, as it will fail.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
ofproto/ofproto-dpif-upcall.c

index 89de528b251388c1b8d46f8f0dbeaa0fa709d885..f0cd4cc07e14d16f6f92613fbf5373814ece2926 100644 (file)
@@ -1857,7 +1857,9 @@ revalidate(struct revalidator *revalidator)
                     COVERAGE_INC(upcall_ukey_contention);
                 } else {
                     log_unexpected_flow(f, error);
-                    delete_op_init__(&ops[n_ops++], f);
+                    if (error != ENOENT) {
+                        delete_op_init__(&ops[n_ops++], f);
+                    }
                 }
                 continue;
             }