netlink-socket: Use read/write ioctl instead of ReadFile/WriteFile.
authorNithin Raju <nithin@vmware.com>
Wed, 27 Aug 2014 15:36:19 +0000 (08:36 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 28 Aug 2014 15:52:52 +0000 (08:52 -0700)
commitfd972eb87a888242fb1a8ec2394fa7b3030fbd7d
treec8fee55ca9946a58b2cb2e379b09372ddd230b86
parent8721a6e2f00fbaedaafa414cc74cf1ca66c177be
netlink-socket: Use read/write ioctl instead of ReadFile/WriteFile.

The Windows datapath supports a READ/WRITE ioctl instead of ReadFile/WriteFile.
In this change, we update the following:
- WriteFile() in nl_sock_send__() to use DeviceIoControl(OVS_IOCTL_WRITE)
- ReadFile() in nl_sock_recv__() to use DeviceIoControl(OVS_IOCTL_READ)

The WriteFile() call in nl_sock_transact_multiple__() has not been touched
since it is not needed yet.

Main motive for this change is to be able to unblock the DP Dump workflow.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
lib/netlink-socket.c