wdp: Change functions that use wdp_port to avoid awkward memory semantics.
authorBen Pfaff <blp@nicira.com>
Thu, 8 Apr 2010 19:31:14 +0000 (12:31 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 8 Apr 2010 19:31:47 +0000 (12:31 -0700)
commitdf773b8b81a59ebf43a5a9502c05a73dfc83ddee
treef2a06e9faeea03d7286553a65ff2ae5866d5ba42
parent1510d7c3ce678e9e0c7dc22f819a95b570a3d191
wdp: Change functions that use wdp_port to avoid awkward memory semantics.

wdp_port_query_by_number(), wdp_port_query_by_name(), and
wdp_port_list() all had semantics for the data that they returned that
were difficult to describe and easy to get wrong.  This commit changes them
to be easier to understand and to implement.

Suggested by partner.
ofproto/ofproto.c
ofproto/wdp-provider.h
ofproto/wdp-xflow.c
ofproto/wdp.c
ofproto/wdp.h