dpif-netdev: Use hmap instead of list+array for tracking ports.
authorBen Pfaff <blp@nicira.com>
Wed, 25 Dec 2013 00:08:57 +0000 (16:08 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Jan 2014 01:11:09 +0000 (17:11 -0800)
commitff073a71f9bb763792d8b734978ca51b48979dbc
tree218b2dc23bbabba6b2cf5eccb411f56e7b6c9b4b
parented27e010b9ae9f3605c56a7e3580660efce65c98
dpif-netdev: Use hmap instead of list+array for tracking ports.

The goal is to make it easy to divide the ports into groups for handling
by threads.  It seems easy enough to do that by hash value, and a little
harder otherwise.

This commit has the side effect of raising the maximum number of ports from
256 to UINT32_MAX-1.  That is why some tests need to be updated:
previously, internally generated port names like "ovs_vxlan_4341" were
ignored because 4341 is bigger than the previous limit of 256.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/dpif-netdev.c
tests/tunnel.at