Lines Matching refs:rxhash
163 u32 rxhash; member
355 static inline u32 tun_hashfn(u32 rxhash) in tun_hashfn() argument
357 return rxhash & TUN_MASK_FLOW_ENTRIES; in tun_hashfn()
360 static struct tun_flow_entry *tun_flow_find(struct hlist_head *head, u32 rxhash) in tun_flow_find() argument
365 if (e->rxhash == rxhash) in tun_flow_find()
373 u32 rxhash, u16 queue_index) in tun_flow_create() argument
380 rxhash, queue_index); in tun_flow_create()
382 e->rxhash = rxhash; in tun_flow_create()
395 e->rxhash, e->queue_index); in tun_flow_delete()
465 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update() argument
473 head = &tun->flows[tun_hashfn(rxhash)]; in tun_flow_update()
477 e = tun_flow_find(head, rxhash); in tun_flow_update()
487 if (!tun_flow_find(head, rxhash) && in tun_flow_update()
489 tun_flow_create(tun, head, rxhash, queue_index); in tun_flow_update()
989 __u32 rxhash; in tun_automq_xmit() local
991 rxhash = __skb_get_hash_symmetric(skb); in tun_automq_xmit()
992 e = tun_flow_find(&tun->flows[tun_hashfn(rxhash)], rxhash); in tun_automq_xmit()
994 tun_flow_save_rps_rxhash(e, rxhash); in tun_automq_xmit()
1691 u32 rxhash = 0; in tun_get_user() local
1895 rxhash = __skb_get_hash_symmetric(skb); in tun_get_user()
1952 if (rxhash) in tun_get_user()
1953 tun_flow_update(tun, rxhash, tfile); in tun_get_user()
2384 u32 rxhash = 0, act; in tun_xdp_one() local
2458 rxhash = __skb_get_hash_symmetric(skb); in tun_xdp_one()
2471 if (rxhash) in tun_xdp_one()
2472 tun_flow_update(tun, rxhash, tfile); in tun_xdp_one()