Lines Matching refs:rxhash
197 u32 rxhash; member
409 static inline u32 tun_hashfn(u32 rxhash) in tun_hashfn() argument
411 return rxhash & TUN_MASK_FLOW_ENTRIES; in tun_hashfn()
414 static struct tun_flow_entry *tun_flow_find(struct hlist_head *head, u32 rxhash) in tun_flow_find() argument
419 if (e->rxhash == rxhash) in tun_flow_find()
427 u32 rxhash, u16 queue_index) in tun_flow_create() argument
433 rxhash, queue_index); in tun_flow_create()
435 e->rxhash = rxhash; in tun_flow_create()
448 e->rxhash, e->queue_index); in tun_flow_delete()
520 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update() argument
528 if (!rxhash) in tun_flow_update()
531 head = &tun->flows[tun_hashfn(rxhash)]; in tun_flow_update()
535 e = tun_flow_find(head, rxhash); in tun_flow_update()
543 if (!tun_flow_find(head, rxhash) && in tun_flow_update()
545 tun_flow_create(tun, head, rxhash, queue_index); in tun_flow_update()
1048 __u32 rxhash; in tun_automq_xmit() local
1050 rxhash = __skb_get_hash_symmetric(skb); in tun_automq_xmit()
1051 if (rxhash) { in tun_automq_xmit()
1053 e = tun_flow_find(&tun->flows[tun_hashfn(rxhash)], in tun_automq_xmit()
1054 rxhash); in tun_automq_xmit()
1056 tun_flow_save_rps_rxhash(e, rxhash); in tun_automq_xmit()
1711 u32 rxhash = 0; in tun_get_user() local
1908 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()