datapath-windows/ovsext/Flow.c
/*
 * ----------------------------------------------------------------------------
 * OvsHashFlow --
 *    Calculate the hash for the given flow key.
 * ----------------------------------------------------------------------------
 */
OvsHashFlow
Calculate the hash for the given flow key.
OvsHashFlow Calculate the hash for the given flow key .
UINT64
OvsHashFlow(const OvsFlowKey *key)
{
    UINT16 offset = key->l2.offset;
    UINT16 size = key->l2.keyLen;
    UINT8 *start;
    ASSERT(key->tunKey.dst || offset == sizeof(OvsIPv4TunnelKey));
    ASSERT(!key->tunKey.dst || offset == OvsGetFlowL2Offset(&key->tunKey));
    start = (UINT8 *)key + offset;
    return OvsJhashBytes(start, size, 0);
}
UINT64 OvsHashFlow ( const OvsFlowKey * key ) { UINT16 offset = key -> l2 . offset ; UINT16 size = key -> l2 . keyLen ; UINT8 * start ; ASSERT ( key -> tunKey . dst || offset == sizeof ( OvsIPv4TunnelKey ) ) ; ASSERT ( ! key -> tunKey . dst || offset == OvsGetFlowL2Offset ( & key -> tunKey ) ) ; start = ( UINT8 * ) key + offset ; return OvsJhashBytes ( start , size , 0 ) ; }
OvsHashFlow
    Calculate the hash for the given flow key.
OvsHashFlow Calculate the hash for the given flow key .