]> git.proxmox.com Git - mirror_ovs.git/commit
ovn-northd: Avoid excessive work to find router ports.
authorBen Pfaff <blp@ovn.org>
Wed, 17 Aug 2016 20:58:13 +0000 (13:58 -0700)
committerBen Pfaff <blp@ovn.org>
Mon, 29 Aug 2016 17:03:29 +0000 (10:03 -0700)
commit9ab989b7b6eaa781663f090dd2b366bf98dc02ee
treeced0d390a98383e6e44f0484534a45d5c9ae3072
parent03dabc347946d13f3dce71a7f14af636a7fc5ba9
ovn-northd: Avoid excessive work to find router ports.

The ovn_datapath for each logical switch maintains an array of its ports
of type "router-port", but instead of iterating through it build_pre_acls()
iterated through all of the ports in the entire database, which is
wasteful and duplicative work.  This commit switches to using the array of
router ports.

This change is best viewed ignoring white space only changes.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
ovn/northd/ovn-northd.c