summaryrefslogtreecommitdiff
path: root/ofproto/bond.c
diff options
context:
space:
mode:
authorAndy Zhou <azhou@nicira.com>2014-03-27 20:22:37 -0700
committerAndy Zhou <azhou@nicira.com>2014-03-28 12:52:12 -0700
commit7e36ac42e33a89d5d2c981ea7750939a1da6db89 (patch)
treee641f21bec7288b49ff884620225f8ac84b668dc /ofproto/bond.c
parent965607c850bb14e24905c46845d050f14105d923 (diff)
downloadopenvswitch-7e36ac42e33a89d5d2c981ea7750939a1da6db89.tar.gz
lib/packet.h: add hash_mac()
Add hash_mac() and apply it when appropriate. Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/bond.c')
-rw-r--r--ofproto/bond.c2
1 files changed, 1 insertions, 1 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