X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fpinsched.c;h=91e9c411cffab5f6910937d84c14e6732ab07543;hb=f9c0c3eccdb8e14dc8fbf572e515dbef1eb7b2ee;hp=4c5f3e8369a77b2171acccd20a8d29b105169c0c;hpb=7894e7daad4bc780dc3386bf2c28cafdc0692016;p=sliver-openvswitch.git diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c index 4c5f3e836..91e9c411c 100644 --- a/ofproto/pinsched.c +++ b/ofproto/pinsched.c @@ -104,7 +104,7 @@ pinqueue_destroy(struct pinsched *ps, struct pinqueue *q) static struct pinqueue * pinqueue_get(struct pinsched *ps, ofp_port_t port_no) { - uint32_t hash = hash_int(ofp_to_u16(port_no), 0); + uint32_t hash = hash_ofp_port(port_no); struct pinqueue *q; HMAP_FOR_EACH_IN_BUCKET (q, node, hash, &ps->queues) {