Thanks for the review.

From: Yin Lin <[email protected]<mailto:[email protected]>>
Date: Thursday, June 2, 2016 at 3:00 PM
To: Nithin Raju <[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [ovs-dev] [PATCH] datapath-windows: use ip proto for tunnel port 
lookup

Thanks Nithin for working on this! The fix overall looks pretty good.

Can we get rid of OvsFindTunnelVportByPortType since it doesn't make much sense 
and is dangerous to call if user doesn't understand what it actually does?

Done in the v2.


Also, there is some misalignment in the following code. Did you use tab?

-            if (tunnelVport) {
+        tunnelVport =
+            OvsFindTunnelVportByDstPortAndNWProto(ovsFwdCtx->switchContext,
+                                                  dstPort,
+                                                  flowKey->ipKey.nwProto);
+        if (tunnelVport) {
+            switch(tunnelVport->ovsType) {
+            case OVS_VPORT_TYPE_STT:
                 ovsActionStats.rxStt++;
-            }

Alignment looks correct. I have checked it after applying the patch.

-- Nithin
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to