[ovs-git] [openvswitch/ovs] fa7c38: ofproto-dpif: Reduce the time to create many bridg...
noreply at github.com
Tue Jan 31 23:11:41 UTC 2017
Author: Sha Zhang <zhangsha.zhang at huawei.com>
Date: 2017-01-31 (Tue, 31 Jan 2017)
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