Skip to content

Commit

Permalink
datapath-windows: fix hash creation on ct mark
Browse files Browse the repository at this point in the history
Use key->ct.mark instead of key->ct.zone when generating the hash
over the mark.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
Acked-by: Anand Kumar <[email protected]>
  • Loading branch information
aserdean committed Feb 27, 2018
1 parent 879b2d3 commit 6a6ee1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datapath-windows/ovsext/Flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -2598,7 +2598,7 @@ OvsLookupFlow(OVS_DATAPATH *datapath,
*hash = OvsJhashWords((UINT32*)hash, 1, key->ct.zone);
}
if (key->ct.mark) {
*hash = OvsJhashWords((UINT32*)hash, 1, key->ct.zone);
*hash = OvsJhashWords((UINT32*)hash, 1, key->ct.mark);
}
if (key->ct.labels.ct_labels) {
UINT32 lblHash = OvsJhashBytes(&key->ct.labels,
Expand Down

0 comments on commit 6a6ee1e

Please sign in to comment.