summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Netlink/NetlinkError.h
diff options
context:
space:
mode:
authorNithin Raju <nithin@vmware.com>2014-11-18 17:42:47 -0800
committerGurucharan Shetty <gshetty@nicira.com>2014-11-20 07:13:37 -0800
commit8ea43bad3d4bf56d29c1390a9c7f5c8f9cb4e252 (patch)
tree5a97ed105f6ef4caf3a02b71ae2b4f397bf2a3d9 /datapath-windows/ovsext/Netlink/NetlinkError.h
parent827e07be2e969354267f8383cc708b1edbe4dd49 (diff)
downloadopenvswitch-8ea43bad3d4bf56d29c1390a9c7f5c8f9cb4e252.tar.gz
datapath-windows: Change return type of OvsInitVxlanTunnel()
OvsInitVxlanTunnel() need not return a NL_ERROR. In this patch, we change it to NTSTATUS, and also update the mapping function that maps a NTSTATUS to NL_ERROR. Signed-off-by: Nithin Raju <nithin@vmware.com> Acked-by: Ankur Sharma <ankursharma@vmware.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Netlink/NetlinkError.h')
-rw-r--r--datapath-windows/ovsext/Netlink/NetlinkError.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Netlink/NetlinkError.h b/datapath-windows/ovsext/Netlink/NetlinkError.h
index 827fa8cc6..53c935ff2 100644
--- a/datapath-windows/ovsext/Netlink/NetlinkError.h
+++ b/datapath-windows/ovsext/Netlink/NetlinkError.h
@@ -202,13 +202,19 @@ typedef enum _NL_ERROR_
static __inline
NlMapStatusToNlErr(NTSTATUS status)
{
- NL_ERROR ret = NL_ERROR_SUCCESS;
+ NL_ERROR ret = NL_ERROR_INVAL;
switch (status)
{
case STATUS_NOT_SUPPORTED:
ret = NL_ERROR_NOTSUPP;
break;
+ case STATUS_INSUFFICIENT_RESOURCES:
+ ret = NL_ERROR_NOMEM;
+ break;
+ case STATUS_SUCCESS:
+ ret = NL_ERROR_SUCCESS;
+ break;
default:
break;
}