X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Flearning-switch.c;h=595b7f0229b6836ad782fb05cfb0e28efbdd76f9;hb=44bac24ba5d22fe238bd96702707eb2029efec41;hp=4e7cedaf7e581466b418561ae94101b94a25094e;hpb=b54c9e972e74ed51ce8a6d0a071f253f48432d6c;p=sliver-openvswitch.git diff --git a/lib/learning-switch.c b/lib/learning-switch.c index 4e7cedaf7..595b7f022 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -37,6 +37,7 @@ #include "poll-loop.h" #include "rconn.h" #include "shash.h" +#include "simap.h" #include "timeval.h" #include "vconn.h" #include "vlog.h" @@ -125,12 +126,12 @@ lswitch_create(struct rconn *rconn, const struct lswitch_config *cfg) hmap_init(&sw->queue_numbers); shash_init(&sw->queue_names); if (cfg->port_queues) { - struct shash_node *node; + struct simap_node *node; - SHASH_FOR_EACH (node, cfg->port_queues) { + SIMAP_FOR_EACH (node, cfg->port_queues) { struct lswitch_port *port = xmalloc(sizeof *port); hmap_node_nullify(&port->hmap_node); - port->queue_id = (uintptr_t) node->data; + port->queue_id = node->data; shash_add(&sw->queue_names, node->name, port); } }