Home
last modified time | relevance | path

Searched refs:hv2 (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/airoha/
H A Dairoha_ppe.c462 u32 hash, hv1, hv2, hv3; in airoha_ppe_foe_get_entry_hash() local
468 hv2 = hwe->ipv4.orig_tuple.dest_ip; in airoha_ppe_foe_get_entry_hash()
476 hv2 = hwe->ipv6.src_ip[2] ^ hwe->ipv6.dest_ip[2]; in airoha_ppe_foe_get_entry_hash()
477 hv2 ^= hwe->ipv6.dest_ip[0]; in airoha_ppe_foe_get_entry_hash()
488 hv2 = l2->common.dest_mac_lo; in airoha_ppe_foe_get_entry_hash()
489 hv2 = hv2 << 16; in airoha_ppe_foe_get_entry_hash()
490 hv2 = hv2 | ((l2->common.src_mac_hi & 0xffff0000) >> 16); in airoha_ppe_foe_get_entry_hash()
502 hash = (hv1 & hv2) | ((~hv1) & hv3); in airoha_ppe_foe_get_entry_hash()
504 hash ^= hv1 ^ hv2 ^ hv3; in airoha_ppe_foe_get_entry_hash()
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe.c146 u32 hv1, hv2, hv3; in mtk_ppe_hash_entry() local
153 hv2 = e->ipv4.orig.dest_ip; in mtk_ppe_hash_entry()
161 hv2 = e->ipv6.src_ip[2] ^ e->ipv6.dest_ip[2]; in mtk_ppe_hash_entry()
162 hv2 ^= e->ipv6.dest_ip[0]; in mtk_ppe_hash_entry()
174 hash = (hv1 & hv2) | ((~hv1) & hv3); in mtk_ppe_hash_entry()
176 hash ^= hv1 ^ hv2 ^ hv3; in mtk_ppe_hash_entry()