Age | Commit message (Collapse) | Author |
|
This will acquire a user in an upcoming commit that uses it in parsing
without modifying the text being parsed or copying it.
|
|
An shash always has string keys and sometimes it hash string values as
well. Usually the general-purpose shash functions are fine for working
with string-to-string maps, but this commit introduces a few more
specialized functions that only work with string-to-string maps. It's not
clear yet to me whether this should actually be a new data structure, so
for now the new functions just work on shashes.
This commit also converts one user of shash_destroy() to use smap_destroy().
This is the only existing user of these functions that I spotted as a
trivial conversion candidate while grepping.
These new functions will see more use in the following commit.
Reviewed by Justin Pettit.
|
|
These macros require one fewer argument by switching, which makes code
that uses them shorter and more readable.
|
|
|
|
|
|
To be used in an upcoming commit.
|
|
|
|
This makes it easy to create a bunch of records that are all related to
each other in a single ovs-vsctl invocation. It adds an example to the
ovs-vsctl manpage.
|
|
Before this commit and the following one, with 1000 interfaces strcmp()
took 36% and port_lookup() took 8% of total runtime when reconfiguring
bridges. With these two commits the percentage is reduced to 3% and 0%,
respectively.
|
|
The main change here is the need to update all of the uses of UNUSED in
the next branch to OVS_UNUSED as it is now spelled on "master".
|
|
From partner.
|
|
To be used in ovs-vsctl in an upcoming commit.
|
|
Tested only to the extent that it doesn't obviously break anything else.
|
|
This has seen very little testing, so some features are almost certainly
busted. Port mirroring is not yet converted, so it will definitely not
work.
|
|
|
|
|
|
|
|
|
|
This is both more convenient and cleaner than using HMAP_FOR_EACH(_SAFE)
directly.
|
|
|
|
|
|
|
|
|
|
|