Searched refs:hv1 (Results 1 – 6 of 6) sorted by relevance
391 u32 hash, hv1, hv2, hv3; in airoha_ppe_foe_get_entry_hash() local 396 hv1 = hwe->ipv4.orig_tuple.ports; in airoha_ppe_foe_get_entry_hash() 402 hv1 = hwe->ipv6.src_ip[3] ^ hwe->ipv6.dest_ip[3]; in airoha_ppe_foe_get_entry_hash() 403 hv1 ^= hwe->ipv6.ports; in airoha_ppe_foe_get_entry_hash() 414 hv1 = l2->common.src_mac_hi & 0xffff; in airoha_ppe_foe_get_entry_hash() 415 hv1 = hv1 << 16 | l2->src_mac_lo; in airoha_ppe_foe_get_entry_hash() 431 hash = (hv1 & hv2) | ((~hv1) & hv3); in airoha_ppe_foe_get_entry_hash() 433 hash ^= hv1 in airoha_ppe_foe_get_entry_hash() [all...]
146 u32 hv1, hv2, hv3; in mtk_ppe_hash_entry() local 152 hv1 = e->ipv4.orig.ports; in mtk_ppe_hash_entry() 158 hv1 = e->ipv6.src_ip[3] ^ e->ipv6.dest_ip[3]; in mtk_ppe_hash_entry() 159 hv1 ^= e->ipv6.ports; 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()
208 if (hdr->hv1.tp_rxhash) in recv_frame() 209 verify_rxhash(frame + hdr->tp_net, hdr->hv1.tp_rxhash, in recv_frame()
1039 ppd->hv1.tp_rxhash = skb_get_hash(pkc->skb); in prb_fill_rxhash() 1045 ppd->hv1.tp_rxhash = 0; in prb_clear_rxhash() 1054 ppd->hv1.tp_vlan_tci = skb_vlan_tag_get(pkc->skb); in prb_fill_vlan_info() 1055 ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->vlan_proto); in prb_fill_vlan_info() 1058 ppd->hv1.tp_vlan_tci = vlan_get_tci(pkc->skb, pkc->skb->dev); in prb_fill_vlan_info() 1059 ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->protocol); in prb_fill_vlan_info() 1062 ppd->hv1.tp_vlan_tci = 0; in prb_fill_vlan_info() 1063 ppd->hv1.tp_vlan_tpid = 0; in prb_fill_vlan_info() 1071 ppd->hv1.tp_padding = 0; in prb_run_all_ft_ops()
254 u64 hv1 : 1; member
915 printf("rxhash: 0x%x\n", ppd->hv1.tp_rxhash);