Lines Matching defs:hash
3607 /* L2 hash helper */
3695 * bond_xmit_hash - generate a hash value based on the xmit policy
3700 * them to generate a hash based on the xmit_policy set in the bonding device
3705 u32 hash;
3709 return skb->hash;
3717 hash = bond_eth_hash(skb);
3720 memcpy(&hash, &flow.icmp, sizeof(hash));
3722 memcpy(&hash, &flow.ports.ports, sizeof(hash));
3724 hash ^= (__force u32)flow_get_u32_dst(&flow) ^
3726 hash ^= (hash >> 16);
3727 hash ^= (hash >> 8);
3729 return hash >> 1;
4486 /* Build the usable slaves array in control path for modes that use xmit-hash
4542 slave_dbg(bond->dev, slave->dev, "Adding slave to tx hash array[%d]\n",
4569 u32 hash;
4571 hash = bond_xmit_hash(bond, skb);
4576 slave = slaves->arr[hash % count];
4582 * just calculates hash and sends the packet out.