Lines Matching refs:rxhash
166 u32 rxhash; member
273 static inline u32 tun_hashfn(u32 rxhash) in tun_hashfn() argument
275 return rxhash & 0x3ff; in tun_hashfn()
278 static struct tun_flow_entry *tun_flow_find(struct hlist_head *head, u32 rxhash) in tun_flow_find() argument
283 if (e->rxhash == rxhash) in tun_flow_find()
291 u32 rxhash, u16 queue_index) in tun_flow_create() argument
297 rxhash, queue_index); in tun_flow_create()
299 e->rxhash = rxhash; in tun_flow_create()
312 e->rxhash, e->queue_index); in tun_flow_delete()
381 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update() argument
389 if (!rxhash) in tun_flow_update()
392 head = &tun->flows[tun_hashfn(rxhash)]; in tun_flow_update()
401 e = tun_flow_find(head, rxhash); in tun_flow_update()
409 if (!tun_flow_find(head, rxhash) && in tun_flow_update()
411 tun_flow_create(tun, head, rxhash, queue_index); in tun_flow_update()
829 __u32 rxhash; in tun_net_xmit() local
831 rxhash = skb_get_hash(skb); in tun_net_xmit()
832 if (rxhash) { in tun_net_xmit()
834 e = tun_flow_find(&tun->flows[tun_hashfn(rxhash)], in tun_net_xmit()
835 rxhash); in tun_net_xmit()
837 tun_flow_save_rps_rxhash(e, rxhash); in tun_net_xmit()
1097 u32 rxhash; in tun_get_user() local
1262 rxhash = skb_get_hash(skb); in tun_get_user()
1268 tun_flow_update(tun, rxhash, tfile); in tun_get_user()