diff options
author | Ben Pfaff <blp@nicira.com> | 2012-05-22 10:32:02 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-05-22 10:32:02 -0700 |
commit | 44bac24ba5d22fe238bd96702707eb2029efec41 (patch) | |
tree | 4e0f353c178283acffa051c5a8272239bf41652f /lib/learning-switch.h | |
parent | b54c9e972e74ed51ce8a6d0a071f253f48432d6c (diff) |
simap: New data structure for string-to-integer maps.
This commit adapts a couple of existing pieces of code to use the
new data structure. The following commit will add another user
(which is also the first use of the simap_increas() function).
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/learning-switch.h')
-rw-r--r-- | lib/learning-switch.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/learning-switch.h b/lib/learning-switch.h index e42aec16..c3c37f29 100644 --- a/lib/learning-switch.h +++ b/lib/learning-switch.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2010, 2011 Nicira, Inc. + * Copyright (c) 2008, 2010, 2011, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,8 +55,8 @@ struct lswitch_config { * specifying a particular queue. */ uint32_t default_queue; - /* Maps from a port name to a queue_id (cast to void *). */ - const struct shash *port_queues; + /* Maps from a port name to a queue_id. */ + const struct simap *port_queues; }; struct lswitch *lswitch_create(struct rconn *, const struct lswitch_config *); |