ofproto: Use shash instead of svec for uniquifying, in reinit_ports().
authorBen Pfaff <blp@nicira.com>
Mon, 27 Dec 2010 19:32:08 +0000 (11:32 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 29 Dec 2010 06:40:08 +0000 (22:40 -0800)
commitc77d9d13998d76c8cb8b51adcce564093330edc7
tree4aabf70d22d5e59442026618d22a0a1b17a0053f
parent7cfb3c26b2abb82e95bbecaaf78317e7e7e343d4
ofproto: Use shash instead of svec for uniquifying, in reinit_ports().

No point in using an O(n log n) algorithm when an O(n) algorithm is
readily available.

(I'm sure that the actual performance difference, if any, does not matter
in practice.)

Acked-by: Jesse Gross <jesse@nicira.com>
ofproto/ofproto.c