datapath-windows: return netlink error for read operation
authorNithin Raju <nithin@vmware.com>
Wed, 23 Sep 2015 16:15:32 +0000 (09:15 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 30 Sep 2015 05:42:05 +0000 (22:42 -0700)
commit8fd3ded1cca6b1bec0ce54eeae294e3eeded2d8b
tree851f7048867b7edc397ac1d737b4d5dc587ea91f
parent121daded51b9798fe3722824b27a05c16806cbd1
datapath-windows: return netlink error for read operation

The kernel datapath returns a NL error message upon any errors
during read operations, and returns STATUS_SUCCESS as the return
code. We reply on the input NL request to get the family ID, and the
PID. However, when the request is of type OVS_CTRL_CMD_EVENT_NOTIFY
and OVS_CTRL_CMD_READ_NOTIFY, there's no input buffer associated
with the request. So, we use a temporary input buffer to be able to
call the Netlink APIs for constructing the output NL error message.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Datapath.c