ovs-vsctl: Speed up port management operations with many ports.
authorBen Pfaff <blp@nicira.com>
Tue, 17 Apr 2012 23:56:21 +0000 (16:56 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 19 Apr 2012 21:27:44 +0000 (14:27 -0700)
commita341ee57ee5e5bd063df4681815c2581337e8d62
treeeec6f40191562adda14f7fa780acf22f636d4f12
parent286a2e825b8a38f8fab7a512bb8432b3abae3356
ovs-vsctl: Speed up port management operations with many ports.

This makes a sequence of 10,000 "add-port" operations on a single ovs-vsctl
command line about 4X faster.  It makes a sequence of 10,000 "del-port"
operations on a single command line over 2X faster.

It works by not repopulating the cache of relationships between bridges,
ports, and interfaces after most operations, instead updating them
incrementally in-place.

Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-vsctl.c