X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fflow.c;h=e6607bf1514474adde953ffe41f4afe099ba79ae;hb=71fe9970f7bc88a20b307e55f924c21029af98f2;hp=85d7bfef0d6a610510b8cf7c90036e61a06e8b18;hpb=db7f8281824224289eeb177c5437c9ec070ab042;p=openvswitch diff --git a/lib/flow.c b/lib/flow.c index 85d7bfef..e6607bf1 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -591,13 +591,13 @@ flow_wildcards_combine(struct flow_wildcards *dst, /* Returns a hash of the wildcards in 'wc'. */ uint32_t -flow_wildcards_hash(const struct flow_wildcards *wc) +flow_wildcards_hash(const struct flow_wildcards *wc, uint32_t basis) { /* If you change struct flow_wildcards and thereby trigger this * assertion, please check that the new struct flow_wildcards has no holes * in it before you update the assertion. */ BUILD_ASSERT_DECL(sizeof *wc == 56 + FLOW_N_REGS * 4); - return hash_bytes(wc, sizeof *wc, 0); + return hash_bytes(wc, sizeof *wc, basis); } /* Returns true if 'a' and 'b' represent the same wildcards, false if they are