Lines Matching refs:numqueues

180 	unsigned int            numqueues;  member
344 if (tun->numqueues == 1 || tfile->detached) in tun_flow_update()
392 u32 numqueues = 0; in tun_select_queue() local
395 numqueues = ACCESS_ONCE(tun->numqueues); in tun_select_queue()
405 txq = ((u64)txq * numqueues) >> 32; in tun_select_queue()
408 while (unlikely(txq >= numqueues)) in tun_select_queue()
409 txq -= numqueues; in tun_select_queue()
428 netif_set_real_num_tx_queues(tun->dev, tun->numqueues); in tun_set_real_num_queues()
429 netif_set_real_num_rx_queues(tun->dev, tun->numqueues); in tun_set_real_num_queues()
464 BUG_ON(index >= tun->numqueues); in __tun_detach()
467 tun->tfiles[tun->numqueues - 1]); in __tun_detach()
471 --tun->numqueues; in __tun_detach()
479 tun_flow_delete_by_queue(tun, tun->numqueues + 1); in __tun_detach()
489 if (tun && tun->numqueues == 0 && tun->numdisabled == 0) { in __tun_detach()
514 int i, n = tun->numqueues; in tun_detach_all()
521 --tun->numqueues; in tun_detach_all()
527 BUG_ON(tun->numqueues != 0); in tun_detach_all()
561 if (!(tun->flags & IFF_MULTI_QUEUE) && tun->numqueues == 1) in tun_attach()
566 tun->numqueues + tun->numdisabled == MAX_TAP_QUEUES) in tun_attach()
577 tfile->queue_index = tun->numqueues; in tun_attach()
579 rcu_assign_pointer(tun->tfiles[tun->numqueues], tfile); in tun_attach()
580 tun->numqueues++; in tun_attach()
760 u32 numqueues = 0; in tun_net_xmit() local
764 numqueues = ACCESS_ONCE(tun->numqueues); in tun_net_xmit()
767 if (txq >= numqueues) in tun_net_xmit()
770 if (numqueues == 1) { in tun_net_xmit()
803 if (skb_queue_len(&tfile->socket.sk->sk_receive_queue) * numqueues in tun_net_xmit()
1598 (tun->numqueues + tun->numdisabled > 1)) { in tun_set_iff()
1774 for (i = 0; i < tun->numqueues; i++) { in tun_attach_filter()
1792 for (i = 0; i < tun->numqueues; i++) { in tun_set_sndbuf()
2077 tun_detach_filter(tun, tun->numqueues); in __tun_chr_ioctl()