datapath-windows: comment cleanup and indentation
authorNithin Raju <nithin@vmware.com>
Thu, 16 Jun 2016 17:17:09 +0000 (10:17 -0700)
committerGurucharan Shetty <guru@ovn.org>
Mon, 20 Jun 2016 17:05:00 +0000 (10:05 -0700)
Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolution.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
datapath-windows/ovsext/Flow.c
datapath-windows/ovsext/Vxlan.c

index 2a91855..595518f 100644 (file)
@@ -1650,19 +1650,19 @@ MapTunAttrToFlowPut(PNL_ATTR *keyAttrs,
     if (keyAttrs[OVS_KEY_ATTR_TUNNEL]) {
 
         if (tunAttrs[OVS_TUNNEL_KEY_ATTR_ID]) {
-            destKey->tunKey.tunnelId = NlAttrGetU64
-                                       (tunAttrs[OVS_TUNNEL_KEY_ATTR_ID]);
+            destKey->tunKey.tunnelId =
+                NlAttrGetU64(tunAttrs[OVS_TUNNEL_KEY_ATTR_ID]);
             destKey->tunKey.flags |= OVS_TNL_F_KEY;
         }
 
         if (tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_DST]) {
-        destKey->tunKey.dst = NlAttrGetU32
-                              (tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_DST]);
+            destKey->tunKey.dst =
+                NlAttrGetU32(tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_DST]);
         }
 
         if (tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_SRC]) {
-        destKey->tunKey.src = NlAttrGetU32
-                              (tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_SRC]);
+            destKey->tunKey.src =
+                NlAttrGetU32(tunAttrs[OVS_TUNNEL_KEY_ATTR_IPV4_SRC]);
         }
 
         if (tunAttrs[OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT]) {
@@ -1674,13 +1674,13 @@ MapTunAttrToFlowPut(PNL_ATTR *keyAttrs,
         }
 
         if (tunAttrs[OVS_TUNNEL_KEY_ATTR_TOS]) {
-        destKey->tunKey.tos = NlAttrGetU8
-                              (tunAttrs[OVS_TUNNEL_KEY_ATTR_TOS]);
+            destKey->tunKey.tos =
+                NlAttrGetU8(tunAttrs[OVS_TUNNEL_KEY_ATTR_TOS]);
         }
 
         if (tunAttrs[OVS_TUNNEL_KEY_ATTR_TTL]) {
-        destKey->tunKey.ttl = NlAttrGetU8
-                              (tunAttrs[OVS_TUNNEL_KEY_ATTR_TTL]);
+            destKey->tunKey.ttl =
+                NlAttrGetU8(tunAttrs[OVS_TUNNEL_KEY_ATTR_TTL]);
         }
 
         destKey->tunKey.pad = 0;
index f6a55f0..ddd8d8e 100644 (file)
@@ -194,11 +194,6 @@ OvsDoEncapVxlan(POVS_VPORT_ENTRY vport,
     ULONG mss = 0;
     NDIS_TCP_IP_CHECKSUM_NET_BUFFER_LIST_INFO csumInfo;
 
-    /*
-     * XXX: the assumption currently is that the NBL is owned by OVS, and
-     * headroom has already been allocated as part of allocating the NBL and
-     * MDL.
-     */
     curNb = NET_BUFFER_LIST_FIRST_NB(curNbl);
     packetLength = NET_BUFFER_DATA_LENGTH(curNb);