X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fflow.c;h=2a3dd3d932e09ed482c930369a536abd03b9d59a;hb=c49d1dd1686277277cb742ec0fc93749214de391;hp=05bc269d0ef38513a22e8409d696472cec5df7cc;hpb=cb8ca8156749d07c94b92249a49c1c6aa7c74934;p=sliver-openvswitch.git diff --git a/lib/flow.c b/lib/flow.c index 05bc269d0..2a3dd3d93 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -30,6 +30,7 @@ #include "csum.h" #include "dynamic-string.h" #include "hash.h" +#include "jhash.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; } } - return hash_bytes(&fields, sizeof fields, basis); + return jhash_bytes(&fields, sizeof fields, basis); } /* 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: - return hash_bytes(flow->dl_src, sizeof flow->dl_src, basis); + return jhash_bytes(flow->dl_src, sizeof flow->dl_src, basis); case NX_HASH_FIELDS_SYMMETRIC_L4: return flow_hash_symmetric_l4(flow, basis);