diff options
author | Nithin Raju <nithin@vmware.com> | 2015-05-25 23:20:23 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-05-26 16:55:02 -0700 |
commit | 8217bc65d26c3f758bfbda7b0bc070eb1cd03a35 (patch) | |
tree | b5857eec1599fd1f1c59462896c8b40f71b68f5c /datapath-windows/ovsext/PacketIO.c | |
parent | 8f19f0a70352dfa555cffa4f7f34dab22870dc49 (diff) | |
download | openvswitch-8217bc65d26c3f758bfbda7b0bc070eb1cd03a35.tar.gz |
datpath-windows: Make PacketIO.c compilable with WDK8.
There's some code in PacketIO.c that is supported in WDK 8.1 only.
The variable declarations for that code must also be WDK 8.1 only.
Signed-off-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/PacketIO.c')
-rw-r--r-- | datapath-windows/ovsext/PacketIO.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/PacketIO.c b/datapath-windows/ovsext/PacketIO.c index 902e9aa4f..ed629fdde 100644 --- a/datapath-windows/ovsext/PacketIO.c +++ b/datapath-windows/ovsext/PacketIO.c @@ -216,8 +216,10 @@ OvsStartNBLIngress(POVS_SWITCH_CONTEXT switchContext, LIST_ENTRY missedPackets; UINT32 num = 0; OvsCompletionList completionList; +#if (NDIS_SUPPORT_NDIS640) PNET_BUFFER_LIST nativeForwardedNbls = NULL; PNET_BUFFER_LIST *nextNativeForwardedNbl = &nativeForwardedNbls; +#endif dispatch = NDIS_TEST_SEND_AT_DISPATCH_LEVEL(SendFlags)? NDIS_RWL_AT_DISPATCH_LEVEL : 0; @@ -254,7 +256,7 @@ OvsStartNBLIngress(POVS_SWITCH_CONTEXT switchContext, sourcePort == switchContext->virtualExternalPortId); continue; } -#endif +#endif /* NDIS_SUPPORT_NDIS640 */ /* Ethernet Header is a guaranteed safe access. */ curNb = NET_BUFFER_LIST_FIRST_NB(curNbl); @@ -353,11 +355,13 @@ dropit: } } +#if (NDIS_SUPPORT_NDIS640) if (nativeForwardedNbls) { /* This is NVGRE encapsulated traffic and is forwarded to NDIS * in order to be handled by the HNV module. */ OvsSendNBLIngress(switchContext, nativeForwardedNbls, SendFlags); } +#endif /* NDIS_SUPPORT_NDIS640 */ /* Queue the missed packets. */ OvsQueuePackets(&missedPackets, num); |