summaryrefslogtreecommitdiff
path: root/lib/shash.h
Commit message (Collapse)AuthorAgeFilesLines
* lib: New data structure - smap.Ethan Jackson2012-06-141-6/+0
| | | | | | | | | A smap is a string to string hash map. It has a cleaner interface than shash's which were traditionally used for the same purpose. This patch implements the data structure, and changes netdev and its providers to use it. Signed-off-by: Ethan Jackson <ethan@nicira.com>
* Global replace of Nicira Networks.Raju Subramanian2012-05-021-1/+1
| | | | | | | | Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* shash: New function shash_find_len().Ben Pfaff2011-11-171-1/+2
| | | | | This will acquire a user in an upcoming commit that uses it in parsing without modifying the text being parsed or copying it.
* shash: New "smap" functions for working with string-to-string maps.Ben Pfaff2011-01-271-0/+6
| | | | | | | | | | | | | | | | | 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.
* Switch many macros from using CONTAINER_OF to using OBJECT_CONTAINING.Ben Pfaff2010-10-011-5/+4
| | | | | These macros require one fewer argument by switching, which makes code that uses them shorter and more readable.
* shash: New function shash_steal().Ben Pfaff2010-09-231-0/+1
|
* stream-ssl: Enable SSL session caching.Ben Pfaff2010-08-111-0/+1
|
* shash: New function shash_replace().Ben Pfaff2010-06-301-0/+1
| | | | To be used in an upcoming commit.
* shash: New functions shash_destroy_free_data() and shash_clear_free_data().Ben Pfaff2010-06-171-0/+2
|
* ovs-vsctl: Support references among records at creation time.Ben Pfaff2010-06-171-0/+1
| | | | | | 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.
* bridge: Optimize iface_lookup() and port_lookup_iface() with a hash.Ben Pfaff2010-05-051-0/+2
| | | | | | | 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.
* Merge "master" into "next".Ben Pfaff2010-02-111-0/+8
|\ | | | | | | | | 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".
| * Add extern "C" { ... } to some header files to support usage from C++.Ben Pfaff2010-02-041-0/+8
| | | | | | | | From partner.
* | New functions hmap_moved(), shash_moved().Ben Pfaff2010-01-281-0/+1
| | | | | | | | To be used in ovs-vsctl in an upcoming commit.
* | Reimplement port mirroring configuration for database.Ben Pfaff2010-01-191-1/+3
| | | | | | | | Tested only to the extent that it doesn't obviously break anything else.
* | vswitchd: Initial conversion to database-based configuration.Ben Pfaff2009-12-031-0/+1
| | | | | | | | | | | | 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.
* | shash: Make it more convenient to store "const" objects in an shash.Ben Pfaff2009-11-201-1/+1
| |
* | shash: New function shash_sort().Ben Pfaff2009-11-041-0/+1
| |
* | shash: New function shash_count().Ben Pfaff2009-11-041-0/+1
| |
* | shash: New function shash_find_and_delete().Ben Pfaff2009-11-041-0/+1
|/
* shash: Introduce new macros SHASH_FOR_EACH, SHASH_FOR_EACH_SAFE.Ben Pfaff2009-07-301-0/+7
| | | | | This is both more convenient and cleaner than using HMAP_FOR_EACH(_SAFE) directly.
* shash: Make shash_add() return the new node.Ben Pfaff2009-07-301-1/+1
|
* shash: New function shash_first().Ben Pfaff2009-07-061-0/+1
|
* shash: New function shash_is_empty().Ben Pfaff2009-07-061-0/+1
|
* Update primary code license to Apache 2.0.Ben Pfaff2009-06-151-10/+10
|
* Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.v0.90.0Ben Pfaff2009-07-081-0/+42