datapath-windows: Update Recirculation to use portId instead of portNo
authorSairam Venugopal <vsairam@vmware.com>
Wed, 30 Mar 2016 00:43:47 +0000 (17:43 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 1 Apr 2016 04:21:52 +0000 (21:21 -0700)
Fix OvsDoRecirc to use the right PortId when there is a flow miss. This is
used to determine if a packet is received or transmitted by comparing
against the virtualExternalPortId.

Signed-off-by: Sairam Venugopal <vsairam@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
datapath-windows/ovsext/Actions.c

index a91454d..3e5dac9 100644 (file)
@@ -2015,7 +2015,7 @@ OvsDoRecirc(POVS_SWITCH_CONTEXT switchContext,
         }
         status = OvsCreateAndAddPackets(NULL, 0, OVS_PACKET_CMD_MISS,
                                         vport, key, ovsFwdCtx.curNbl,
-                                        srcPortNo ==
+                                        vport->portId ==
                                         switchContext->virtualExternalPortId,
                                         &ovsFwdCtx.layers,
                                         ovsFwdCtx.switchContext,