]> git.proxmox.com Git - ovs.git/commitdiff
datapath-windows: remove invalid ASSERT in Flow.c
authorNithin Raju <nithin@vmware.com>
Wed, 31 Aug 2016 10:33:01 +0000 (03:33 -0700)
committerGurucharan Shetty <guru@ovn.org>
Wed, 31 Aug 2016 17:58:12 +0000 (10:58 -0700)
Since the Geneve changes, the key->l2.offset will no longer be 0 when
the tunnel key is valid within the OVS flow key. key->l2.offset would
be determined by the amount of tunnel options.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
datapath-windows/ovsext/DpInternal.h
datapath-windows/ovsext/Flow.c

index 22599a0e2b4e7d63f8bba0459ed4e8c0a157db30..f62fc55cb56be838a8702d659bb60cd5180b3835 100644 (file)
@@ -157,17 +157,20 @@ typedef union OvsIPv4TunnelKey {
     uint64_t attr[NUM_PKT_ATTR_REQUIRED];
 } OvsIPv4TunnelKey; /* Size of 280 byte. */
 
-__inline uint8_t TunnelKeyGetOptionsOffset(const OvsIPv4TunnelKey *key)
+static __inline uint8_t
+TunnelKeyGetOptionsOffset(const OvsIPv4TunnelKey *key)
 {
     return TUN_OPT_MAX_LEN - key->tunOptLen;
 }
 
-__inline uint8_t* TunnelKeyGetOptions(OvsIPv4TunnelKey *key)
+static __inline uint8_t *
+TunnelKeyGetOptions(OvsIPv4TunnelKey *key)
 {
     return key->tunOpts + TunnelKeyGetOptionsOffset(key);
 }
 
-__inline uint16_t TunnelKeyGetRealSize(OvsIPv4TunnelKey *key)
+static __inline uint16_t
+TunnelKeyGetRealSize(OvsIPv4TunnelKey *key)
 {
     return sizeof(OvsIPv4TunnelKey) - TunnelKeyGetOptionsOffset(key);
 }
index 7a57f96bab9cf9c09b9f2754abd60cd645827989..439fb28a6d526fa7ccd9c1e5d84a7be4af03f56a 100644 (file)
@@ -2595,7 +2595,6 @@ OvsHashFlow(const OvsFlowKey *key)
     UINT8 *start;
 
     ASSERT(key->tunKey.dst || offset == sizeof(OvsIPv4TunnelKey));
-    ASSERT(!key->tunKey.dst || offset == 0);
     start = (UINT8 *)key + offset;
     return OvsJhashBytes(start, size, 0);
 }