Ben Pfaff
4f2226487d
shash: New function shash_steal().
2010-09-23 11:45:34 -07:00
Ben Pfaff
f2f7be8696
stream-ssl: Enable SSL session caching.
2010-08-11 10:24:40 -07:00
Ben Pfaff
79903dd171
shash: New function shash_replace().
...
To be used in an upcoming commit.
2010-06-30 16:49:01 -07:00
Ben Pfaff
1c6d8802c2
shash: Refactor shash_add_nocopy(), shash_find().
...
By breaking out the hash calculation we can enable operations that need
to do both to avoid duplicating the hash calculations. A following commit
will add such an operation.
2010-06-30 16:49:00 -07:00
Ben Pfaff
a90b56b770
shash: New functions shash_destroy_free_data() and shash_clear_free_data().
2010-06-17 10:30:19 -07:00
Ben Pfaff
ce5a3e38da
ovs-vsctl: Support references among records at creation time.
...
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.
2010-06-17 10:30:18 -07:00
Ben Pfaff
4a1ee6ae82
bridge: Optimize iface_lookup() and port_lookup_iface() with a hash.
...
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.
2010-05-05 14:00:47 -07:00
Ben Pfaff
baa8f41b24
New functions hmap_moved(), shash_moved().
...
To be used in ovs-vsctl in an upcoming commit.
2010-01-28 16:06:31 -08:00
Ben Pfaff
37e7f42772
Reimplement port mirroring configuration for database.
...
Tested only to the extent that it doesn't obviously break anything else.
2010-01-19 10:40:36 -08:00
Ben Pfaff
7634353824
vswitchd: Initial conversion to database-based configuration.
...
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.
2009-12-03 11:28:40 -08:00
Ben Pfaff
55213fd581
shash: Make it more convenient to store "const" objects in an shash.
2009-11-20 15:39:07 -08:00
Ben Pfaff
07423999f1
shash: New function shash_sort().
2009-11-04 15:01:02 -08:00
Ben Pfaff
c01da22964
shash: New function shash_count().
2009-11-04 15:01:02 -08:00
Ben Pfaff
837e80977c
shash: New function shash_find_and_delete().
2009-11-04 15:01:02 -08:00
Ben Pfaff
4d678233e9
Merge "citrix" branch into "master.
2009-10-05 10:29:07 -07:00
Ben Pfaff
d855aeadfd
shash: Fix memory leak in shash_destroy().
...
hmap_destroy() has to be called so that sh->map.buckets gets freed.
2009-09-24 10:23:22 -07:00
Ben Pfaff
fd30311c87
shash: Introduce new macros SHASH_FOR_EACH, SHASH_FOR_EACH_SAFE.
...
This is both more convenient and cleaner than using HMAP_FOR_EACH(_SAFE)
directly.
2009-07-30 16:07:13 -07:00
Ben Pfaff
78299b0a68
shash: Make shash_add() return the new node.
2009-07-30 16:07:13 -07:00
Ben Pfaff
7efc68eb07
shash: New function shash_first().
2009-07-06 09:07:23 -07:00
Ben Pfaff
732dcb37a8
shash: New function shash_is_empty().
2009-07-06 09:07:23 -07:00
Ben Pfaff
a14bc59fb8
Update primary code license to Apache 2.0.
2009-06-15 15:11:30 -07:00
Ben Pfaff
064af42167
Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.
2009-07-08 13:19:16 -07:00