Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ofproto-dpif-upcall: Increment dump_seq before instead of after dump.
When process_upcall() passes a miss upcall to upcall_xlate(), the new ukey's dump_seq member is initialized from the current dump_seq. Later, when udpif_revalidator() calls revalidate(), any dumped flow for which ukey->dump_seq equals the current dump_seq is skipped. However, until now the current dump_seq was only incremented *after* a revalidation run is completed. That means that, if a ukey added is added between revalidation runs, it will be skipped on the subsequent revalidation run. This commit fixes the problem by incrementing dump_seq just before a revalidation run instead of just after. Found with OFTest pktact.SingleWildcardMatchPriority test for OpenFlow 1.0. CC: Joe Stringer <joe@ovn.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
- Loading branch information