git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hash: Replace primary hash functions by murmurhash.
[sliver-openvswitch.git]
/
lib
/
flow.c
diff --git
a/lib/flow.c
b/lib/flow.c
index
05bc269
..
2a3dd3d
100644
(file)
--- a/
lib/flow.c
+++ b/
lib/flow.c
@@
-30,6
+30,7
@@
#include "csum.h"
#include "dynamic-string.h"
#include "hash.h"
#include "csum.h"
#include "dynamic-string.h"
#include "hash.h"
+#include "jhash.h"
#include "match.h"
#include "ofpbuf.h"
#include "openflow/openflow.h"
#include "match.h"
#include "ofpbuf.h"
#include "openflow/openflow.h"
@@
-722,7
+723,7
@@
flow_hash_symmetric_l4(const struct flow *flow, uint32_t basis)
fields.tp_port = flow->tp_src ^ flow->tp_dst;
}
}
fields.tp_port = flow->tp_src ^ flow->tp_dst;
}
}
- return hash_bytes(&fields, sizeof fields, basis);
+ return
j
hash_bytes(&fields, sizeof fields, basis);
}
/* Hashes the portions of 'flow' designated by 'fields'. */
}
/* Hashes the portions of 'flow' designated by 'fields'. */
@@
-733,7
+734,7
@@
flow_hash_fields(const struct flow *flow, enum nx_hash_fields fields,
switch (fields) {
case NX_HASH_FIELDS_ETH_SRC:
switch (fields) {
case NX_HASH_FIELDS_ETH_SRC:
- return hash_bytes(flow->dl_src, sizeof flow->dl_src, basis);
+ return
j
hash_bytes(flow->dl_src, sizeof flow->dl_src, basis);
case NX_HASH_FIELDS_SYMMETRIC_L4:
return flow_hash_symmetric_l4(flow, basis);
case NX_HASH_FIELDS_SYMMETRIC_L4:
return flow_hash_symmetric_l4(flow, basis);