Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/airoha/
H A Dairoha_ppe.c361 u32 hash, hv1, hv2, hv3; in airoha_ppe_foe_get_entry_hash() local
367 hv2 = hwe->ipv4.orig_tuple.dest_ip; in airoha_ppe_foe_get_entry_hash()
375 hv2 = hwe->ipv6.src_ip[2] ^ hwe->ipv6.dest_ip[2]; in airoha_ppe_foe_get_entry_hash()
376 hv2 ^= hwe->ipv6.dest_ip[0]; in airoha_ppe_foe_get_entry_hash()
388 hash = (hv1 & hv2) | ((~hv1) & hv3); in airoha_ppe_foe_get_entry_hash()
390 hash ^= hv1 ^ hv2 ^ hv3; in airoha_ppe_foe_get_entry_hash()
/linux-6.15/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()