netdev-vport: Don't return static data in netdev_vport_get_dpif_port().
authorBen Pfaff <blp@nicira.com>
Wed, 1 May 2013 18:05:28 +0000 (11:05 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 6 Jun 2013 23:54:46 +0000 (16:54 -0700)
commit3aa30359b1cce9b597f7c4284a80ed05619e57c1
tree8da04a7ea6d410ca0d2c856f46c2fc83d48f36d7
parent3efb60637b9a6741e7e5b7f04e4daa4d2464d8b3
netdev-vport: Don't return static data in netdev_vport_get_dpif_port().

Returning a static data buffer makes code more brittle and definitely
not thread-safe, so this commit switches to using a caller-provided
buffer instead.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpif-linux.c
lib/dpif-netdev.c
lib/netdev-vport.c
lib/netdev-vport.h
ofproto/ofproto-dpif.c