pinsched: Use hmap instead of port_array.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Nov 2010 21:20:17 +0000 (13:20 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 6 Dec 2010 18:05:44 +0000 (10:05 -0800)
commit531edfbb427fd7f3287d8e6412b115e2cf6dc558
tree81040aa64f954283de9deeaf9630514a784a624f
parent7f009380f61edda538c4c4d6333a14014258ca8f
pinsched: Use hmap instead of port_array.

This is the last remaining use of port_array in the tree.  It wasn't really
taking advantage of any of the special features of port_arrays, so it's
better to save some time and memory by using an hmap instead.

(In addition, OpenFlow 1.1, which we may eventually want to support, has
changed from 16-bit to 32-bit port numbers, which would require the
port_array code to be rewritten anyhow.)
ofproto/pinsched.c