[ovs-git] [openvswitch/ovs] 9ab989: ovn-northd: Avoid excessive work to find router po...

GitHub noreply at github.com
Mon Aug 29 17:03:51 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 9ab989b7b6eaa781663f090dd2b366bf98dc02ee
      https://github.com/openvswitch/ovs/commit/9ab989b7b6eaa781663f090dd2b366bf98dc02ee
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2016-08-29 (Mon, 29 Aug 2016)

  Changed paths:
    M ovn/northd/ovn-northd.c

  Log Message:
  -----------
  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 at ovn.org>
Acked-by: Ryan Moats <rmoats at us.ibm.com>




More information about the git mailing list