[ovs-git] [openvswitch/ovs] fa7c38: ofproto-dpif: Reduce the time to create many bridg...

GitHub noreply at github.com
Tue Jan 31 23:11:41 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: fa7c3899738c248145097d0e6e0f3b0663d79751
      https://github.com/openvswitch/ovs/commit/fa7c3899738c248145097d0e6e0f3b0663d79751
  Author: Sha Zhang <zhangsha.zhang at huawei.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M AUTHORS.rst
    M ofproto/ofproto-dpif.c

  Log Message:
  -----------
  ofproto-dpif: Reduce the time to create many bridges.

This patch moves xlate_txn_start() and xlate_txn_commit() out of the loop
traversing all the ofproto-dpifs to reduce the time of creating a large mount
of bridges in separate database transactions.  As a global variable, new_xcfg
should only be allocated at the beginning and commited at the end once time,
rather than doing it repeatedly in the loop body.

Signed-off-by: Sha Zhang <zhangsha.zhang at huawei.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list