diff options
Diffstat (limited to 'ofproto')
-rw-r--r-- | ofproto/bond.c | 2 | ||||
-rw-r--r-- | ofproto/ofproto-dpif-xlate.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ofproto/bond.c b/ofproto/bond.c index 21201eedd..681233060 100644 --- a/ofproto/bond.c +++ b/ofproto/bond.c @@ -1404,7 +1404,7 @@ bond_link_status_update(struct bond_slave *slave) static unsigned int bond_hash_src(const uint8_t mac[ETH_ADDR_LEN], uint16_t vlan, uint32_t basis) { - return hash_3words(hash_bytes(mac, ETH_ADDR_LEN, 0), vlan, basis); + return hash_mac(mac, vlan, basis); } static unsigned int diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 3385cdd48..e26b7c960 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -2001,7 +2001,7 @@ xlate_select_group(struct xlate_ctx *ctx, struct group_dpif *group) const struct ofputil_bucket *bucket; uint32_t basis; - basis = hash_bytes(ctx->xin->flow.dl_dst, sizeof ctx->xin->flow.dl_dst, 0); + basis = hash_mac(ctx->xin->flow.dl_dst, 0, 0); bucket = group_best_live_bucket(ctx, group, basis); if (bucket) { memset(&wc->masks.dl_dst, 0xff, sizeof wc->masks.dl_dst); |