Skip to content

Commit

Permalink
ovn: Update comment about local datapath calculation.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
russellb committed Feb 3, 2016
1 parent 8834e5c commit 88779d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ovn/controller/lflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,15 @@ lflow_run(struct controller_ctx *ctx, struct hmap *flow_table,
* 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;
Expand Down

0 comments on commit 88779d6

Please sign in to comment.