Lines Matching refs:rxhash
166 u32 rxhash; member
219 static inline u32 tun_hashfn(u32 rxhash) in tun_hashfn() argument
221 return rxhash & 0x3ff; in tun_hashfn()
224 static struct tun_flow_entry *tun_flow_find(struct hlist_head *head, u32 rxhash) in tun_flow_find() argument
229 if (e->rxhash == rxhash) in tun_flow_find()
237 u32 rxhash, u16 queue_index) in tun_flow_create() argument
243 rxhash, queue_index); in tun_flow_create()
245 e->rxhash = rxhash; in tun_flow_create()
258 e->rxhash, e->queue_index); in tun_flow_delete()
327 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update() argument
335 if (!rxhash) in tun_flow_update()
338 head = &tun->flows[tun_hashfn(rxhash)]; in tun_flow_update()
347 e = tun_flow_find(head, rxhash); in tun_flow_update()
355 if (!tun_flow_find(head, rxhash) && in tun_flow_update()
357 tun_flow_create(tun, head, rxhash, queue_index); in tun_flow_update()
774 __u32 rxhash; in tun_net_xmit() local
776 rxhash = skb_get_hash(skb); in tun_net_xmit()
777 if (rxhash) { in tun_net_xmit()
779 e = tun_flow_find(&tun->flows[tun_hashfn(rxhash)], in tun_net_xmit()
780 rxhash); in tun_net_xmit()
782 tun_flow_save_rps_rxhash(e, rxhash); in tun_net_xmit()
1043 u32 rxhash; in tun_get_user() local
1208 rxhash = skb_get_hash(skb); in tun_get_user()
1214 tun_flow_update(tun, rxhash, tfile); in tun_get_user()