Simplify ofproto_controller_info by using a struct smap in place of array.
authorBen Pfaff <blp@nicira.com>
Thu, 17 Jul 2014 17:27:00 +0000 (10:27 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Jul 2014 17:27:00 +0000 (10:27 -0700)
commitf5ad2e5fdc7fded3dd836c974121c703290ead32
treeeece9e6e25794c21192949e3af8ab9b61b6e4ab5
parentc946befe2ddccc6b103bc20519999ad1c033806d
Simplify ofproto_controller_info by using a struct smap in place of array.

The only client for ofproto_controller_info was transforming the array of
pairs into an smap anyway.  It's easy for the code that fills in the array
to generate it as an smap directly, and it's also easier to extend later.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Gurucharan Shetty <gshetty@nicira.com>
ofproto/connmgr.c
ofproto/ofproto.h
vswitchd/bridge.c