Lines Matching refs:rxhash
161 u32 rxhash; member
301 static inline u32 tun_hashfn(u32 rxhash) in tun_hashfn() argument
303 return rxhash & TUN_MASK_FLOW_ENTRIES; in tun_hashfn()
306 static struct tun_flow_entry *tun_flow_find(struct hlist_head *head, u32 rxhash) in tun_flow_find() argument
311 if (e->rxhash == rxhash) in tun_flow_find()
319 u32 rxhash, u16 queue_index) in tun_flow_create() argument
326 rxhash, queue_index); in tun_flow_create()
328 e->rxhash = rxhash; in tun_flow_create()
341 e->rxhash, e->queue_index); in tun_flow_delete()
411 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update() argument
419 head = &tun->flows[tun_hashfn(rxhash)]; in tun_flow_update()
423 e = tun_flow_find(head, rxhash); in tun_flow_update()
433 if (!tun_flow_find(head, rxhash) && in tun_flow_update()
435 tun_flow_create(tun, head, rxhash, queue_index); in tun_flow_update()
980 __u32 rxhash; in tun_automq_xmit() local
982 rxhash = __skb_get_hash_symmetric(skb); in tun_automq_xmit()
983 e = tun_flow_find(&tun->flows[tun_hashfn(rxhash)], rxhash); in tun_automq_xmit()
985 tun_flow_save_rps_rxhash(e, rxhash); in tun_automq_xmit()
1708 u32 rxhash = 0; in tun_get_user() local
1889 rxhash = __skb_get_hash_symmetric(skb); in tun_get_user()
1960 if (rxhash) in tun_get_user()
1961 tun_flow_update(tun, rxhash, tfile); in tun_get_user()
2385 u32 rxhash = 0, act; in tun_xdp_one() local
2474 rxhash = __skb_get_hash_symmetric(skb); in tun_xdp_one()
2499 if (rxhash) in tun_xdp_one()
2500 tun_flow_update(tun, rxhash, tfile); in tun_xdp_one()