diff options
author | Ankur Sharma <ankursharma@vmware.com> | 2014-10-03 15:53:43 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-10-06 15:26:39 -0700 |
commit | 90439167684c9579aae518b291e7ae513da540bb (patch) | |
tree | 7bf4d8d0ab58dfbbad6946b51158d4d2c3c4b5d1 /datapath-windows/ovsext/Datapath.h | |
parent | ffa08087fed5e35e017be176a586c1dbe8bb71a1 (diff) | |
download | openvswitch-90439167684c9579aae518b291e7ae513da540bb.tar.gz |
datapath-windows: Flow Dump handler
In this patch we have added basic changes for
handler registeration for FLOW_GET command.
Signed-off-by: Ankur Sharma <ankursharma@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Datapath.h')
-rw-r--r-- | datapath-windows/ovsext/Datapath.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/datapath-windows/ovsext/Datapath.h b/datapath-windows/ovsext/Datapath.h index 689e0aede..e3bb638b0 100644 --- a/datapath-windows/ovsext/Datapath.h +++ b/datapath-windows/ovsext/Datapath.h @@ -36,12 +36,21 @@ typedef struct _OVS_MESSAGE_ERROR { NL_MSG_ERR errorMsg; } OVS_MESSAGE_ERROR, *POVS_MESSAGE_ERROR; +/* + * Device operations to tag netlink commands with. This is a bitmask since it + * is possible that a particular command can be invoked via different device + * operations. + */ +#define OVS_READ_DEV_OP (1 << 0) +#define OVS_WRITE_DEV_OP (1 << 1) +#define OVS_TRANSACTION_DEV_OP (1 << 2) +#define OVS_READ_EVENT_DEV_OP (1 << 3) + typedef struct _OVS_DEVICE_EXTENSION { INT numberOpenInstance; INT pidCount; } OVS_DEVICE_EXTENSION, *POVS_DEVICE_EXTENSION; - /* * Private context for each handle on the device. */ @@ -83,7 +92,6 @@ POVS_OPEN_INSTANCE OvsGetOpenInstance(PFILE_OBJECT fileObject, NTSTATUS OvsCompleteIrpRequest(PIRP irp, ULONG_PTR infoPtr, NTSTATUS status); - /* * Utility structure and functions to collect in one place all the parameters * passed during a call from userspace. @@ -151,6 +159,8 @@ FreeUserDumpState(POVS_OPEN_INSTANCE instance) } } +NTSTATUS OvsSetupDumpStart(POVS_USER_PARAMS_CONTEXT usrParamsCtx); + #endif /* __DATAPATH_H_ */ #endif /* OVS_USE_NL_INTERFACE */ |