Originally documented as item (2) by Dumitru Ceara at https://bugzilla.redhat.com/show_bug.cgi?id=1960042#c4 "ovn_lflow_add_at() always builds a logical flow record even though this will be discarded if the logical flow is aggregated on a datapath group. We can instead try to delay the creation of new flow records until really necessary. This saves a decent amount of allocations and memory copying. An initial test shows that this change reduces the loop iteration time further [from ~19s] to ~15s."
Fix posted upstream for review: http://patchwork.ozlabs.org/project/ovn/patch/20210601133250.29369-1-dceara@redhat.com/
Patches merged u/s main branch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (ovn bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:2969