diff options
author | Ankur Sharma <ankursharma@vmware.com> | 2014-10-15 15:54:52 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-10-15 17:00:23 -0700 |
commit | a74933bc9f3935c50900fcb16c6f61bf6056ca5f (patch) | |
tree | e2cfd57be321e246bde66b1880022ce3a2557f4a /datapath-windows/include/OvsPub.h | |
parent | 094a1315c53162b2eddf1fc8213a0e900650e25b (diff) | |
download | openvswitch-a74933bc9f3935c50900fcb16c6f61bf6056ca5f.tar.gz |
datapath-windows: changes to existing PACKET_CMD handler.
In this patch we have made following changes:
OvsPacketExecute =>
Changed the data structure to have packet and
actions as pointer (instead of zero length array). It is done because
we will not do memcpy of packet now, pointer will just point
to corresponding offset in input buffer.
OvsExecuteDpIoctl =>
We only need input buffer now. Hence Changed the function signature.
Signed-off-by: Ankur Sharma <ankursharma@vmware.com>
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/include/OvsPub.h')
-rw-r--r-- | datapath-windows/include/OvsPub.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/datapath-windows/include/OvsPub.h b/datapath-windows/include/OvsPub.h index 14a1f3d58..dd42d3365 100644 --- a/datapath-windows/include/OvsPub.h +++ b/datapath-windows/include/OvsPub.h @@ -429,12 +429,8 @@ typedef struct OvsPacketExecute { uint32_t packetLen; uint32_t actionsLen; - union { - /* Variable size blob with packet data first, followed by action - * attrs. */ - char packetBuf[0]; - NL_ATTR actions[0]; - }; + PCHAR packetBuf; + PNL_ATTR actions; } OvsPacketExecute; |