ovn-controller has a simple optimization for excluding some logical flow
processing that we know is unnecessary. This update to a comment in the
code reflects a discussion we had on the mailing list about a better
algorithm that would let us exclude even more.
Signed-off-by: Russell Bryant <russell@ovn.org>
* after a packet leaves a logical router. Further optimization
* is possible, but not based on what we know with local_datapaths
* right now.
+ *
+ * A better approach would be a kind of "flood fill" algorithm:
+ *
+ * 1. Initialize set S to the logical datapaths that have a port
+ * located on the hypervisor.
+ *
+ * 2. For each patch port P in a logical datapath in S, add the
+ * logical datapath of the remote end of P to S. Iterate
+ * until S reaches a fixed point.
*/
struct hmap_node *ld;