ovs-vsctl: Merge struct vsctl_info into struct vsctl_context.
authorBen Pfaff <blp@nicira.com>
Wed, 18 Apr 2012 00:07:00 +0000 (17:07 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 19 Apr 2012 21:27:23 +0000 (14:27 -0700)
commit5ce5a6b57c03282f766dc6c97cbdd06cb8ce6275
treeff859f66527333b1427f8d3f1aebbe694e816a51
parent7da6c3a6906872f6c98bd515490f201d430a3f97
ovs-vsctl: Merge struct vsctl_info into struct vsctl_context.

To speed up management operations with many ports, we need to preserve the
cache of bridges, ports, and interfaces from one operation to the next.
One necessary step is to push the "struct vsctl_info" that did the caching
up from the individual functions that need it into a more global structure.
This commit does that, merging it into struct vsctl_context.

This commit also modifies do_vsctl(), the top-level control code in
ovs-vsctl, to keep this part of the vsctl_context unchanged from running
one command to the next.

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