netlink-socket: Add support for async notification on Windows.
authorEitan Eliahu <eliahue@vmware.com>
Tue, 9 Sep 2014 03:08:12 +0000 (20:08 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 9 Sep 2014 19:37:53 +0000 (12:37 -0700)
commit7fa09611015aa7789d790e8d46ce5414162c5d1f
tree22cd790b61dbf43bb5a6c076fff1ca51ebcee87d
parent3b2a7e92dc8477b920a330535e8c83568c06b7b3
netlink-socket: Add support for async notification on Windows.

We keep an outstanding, out of band, I/O request in the driver at all time.
Once an event generated the driver queues the event message, completes the
pending I/O and unblocks the calling thread through setting the event in the
overlapped structure in the NL socket. The thread will read all all event
messages synchronously through the call of nl_sock_recv()

Signed-off-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Samuel Ghinet <sghinet@cloudbasesolutions.com>
Acked-by: Ankur Sharma <ankursharma@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Acked-by: Saurabh Shah <ssaurabh@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/include/OvsDpInterfaceExt.h
lib/netlink-socket.c