diff options
author | Sorin Vinturis <svinturis@cloudbasesolutions.com> | 2016-03-25 14:49:27 +0000 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-03-25 08:24:33 -0700 |
commit | ee25964a60c6b2c6e60a4c5fbfc9e90cf304f970 (patch) | |
tree | aed6bb5d9fffd860d866be30a53c1e70f9bac9eb /datapath-windows/ovsext/PacketIO.c | |
parent | a0045b428f1e6c20fd8a31dec22d7f16ffef86f3 (diff) | |
download | openvswitch-ee25964a60c6b2c6e60a4c5fbfc9e90cf304f970.tar.gz |
datapath-windows: Added recirculation support.
Recirculation support for the OVS extension.
Tested using PING and iperf with Driver Verifier enabled.
Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Co-authored-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Reported-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-at: https://github.com/openvswitch/ovs-issues/issues/104
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/PacketIO.c')
-rw-r--r-- | datapath-windows/ovsext/PacketIO.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/datapath-windows/ovsext/PacketIO.c b/datapath-windows/ovsext/PacketIO.c index cfbae3406..a0ddc3de7 100644 --- a/datapath-windows/ovsext/PacketIO.c +++ b/datapath-windows/ovsext/PacketIO.c @@ -20,6 +20,8 @@ */ #include "precomp.h" + +#include "Actions.h" #include "Switch.h" #include "Vport.h" #include "NetProto.h" @@ -234,14 +236,14 @@ OvsStartNBLIngress(POVS_SWITCH_CONTEXT switchContext, OvsInitCompletionList(&completionList, switchContext, sendCompleteFlags); for (curNbl = netBufferLists; curNbl != NULL; curNbl = nextNbl) { - POVS_VPORT_ENTRY vport; - UINT32 portNo; + POVS_VPORT_ENTRY vport = NULL; + UINT32 portNo = 0; OVS_DATAPATH *datapath = &switchContext->datapath; - OVS_PACKET_HDR_INFO layers; - OvsFlowKey key; - UINT64 hash; - PNET_BUFFER curNb; - POVS_BUFFER_CONTEXT ctx; + OVS_PACKET_HDR_INFO layers = { 0 }; + OvsFlowKey key = { 0 }; + UINT64 hash = 0; + PNET_BUFFER curNb = NULL; + POVS_BUFFER_CONTEXT ctx = NULL; nextNbl = curNbl->Next; curNbl->Next = NULL; |