ofproto: Add 'name' field to struct ofproto and use hmap instead of shash.
authorBen Pfaff <blp@nicira.com>
Fri, 8 Apr 2011 19:35:38 +0000 (12:35 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 4 May 2011 17:20:42 +0000 (10:20 -0700)
commit2ac6beddbf6a85299c449939a2086126f1f47dbc
treeaf2f380cf81862670326b9c305d701fa41d12d00
parent35c33856b41546a1eb650bf69f1f38fc14cc2f79
ofproto: Add 'name' field to struct ofproto and use hmap instead of shash.

It's slightly inconvenient to call into dpif_name() just to get the name
of an ofproto.  Furthermore, we're already keeping a copy of the ofproto's
name around, in the 'name' field of its shash_node.  It seems easier all
around if we just keep the name right in the struct ofproto and use an
hmap instead of a shash.
ofproto/ofproto.c