Skip to content

Commit

Permalink
datapath-windows: add assert in OvsHashFlow()
Browse files Browse the repository at this point in the history
Signed-off-by: Nithin Raju <[email protected]>
Acked-by: Alin Gabriel Serdean <[email protected]>
Signed-off-by: Gurucharan Shetty <[email protected]>
  • Loading branch information
nithinrajub authored and shettyg committed Sep 1, 2016
1 parent 507a9a1 commit 6b49a29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datapath-windows/ovsext/Flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -2595,6 +2595,7 @@ OvsHashFlow(const OvsFlowKey *key)
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);
}
Expand Down

0 comments on commit 6b49a29

Please sign in to comment.