/* Hash for the output device based upon layer 2 and layer 3 data. If the packet is not IP mimic bond_xmit_hash_policy_l2()  */
static int bond_xmit_hash_policy_l23(struct sk_buff *skb, int count)
/* Hash for the output device based upon layer 2 and layer 3 data. If the packet is not IP mimic bond_xmit_hash_policy_l2()  */
static int bond_xmit_hash_policy_l23(struct sk_buff *skb, int count)
{
	struct ethhdr *data = (struct ethhdr *)skb->data;
	struct iphdr *iph = ip_hdr(skb);
	if (skb->protocol == htons(ETH_P_IP)) {
		return ((ntohl(iph->saddr ^ iph->daddr) & 0xffff) ^
			(data->h_dest[5] ^ data->h_source[5])) % count;
	}
	return (data->h_dest[5] ^ data->h_source[5]) % count;
}