Lines Matching refs:numqueues
180 unsigned int numqueues; member
398 if (tun->numqueues == 1 || tfile->detached) in tun_flow_update()
446 u32 numqueues = 0; in tun_select_queue() local
449 numqueues = ACCESS_ONCE(tun->numqueues); in tun_select_queue()
459 txq = ((u64)txq * numqueues) >> 32; in tun_select_queue()
462 while (unlikely(txq >= numqueues)) in tun_select_queue()
463 txq -= numqueues; in tun_select_queue()
482 netif_set_real_num_tx_queues(tun->dev, tun->numqueues); in tun_set_real_num_queues()
483 netif_set_real_num_rx_queues(tun->dev, tun->numqueues); in tun_set_real_num_queues()
518 BUG_ON(index >= tun->numqueues); in __tun_detach()
521 tun->tfiles[tun->numqueues - 1]); in __tun_detach()
525 --tun->numqueues; in __tun_detach()
533 tun_flow_delete_by_queue(tun, tun->numqueues + 1); in __tun_detach()
543 if (tun && tun->numqueues == 0 && tun->numdisabled == 0) { in __tun_detach()
565 int i, n = tun->numqueues; in tun_detach_all()
573 --tun->numqueues; in tun_detach_all()
580 BUG_ON(tun->numqueues != 0); in tun_detach_all()
614 if (!(tun->flags & IFF_MULTI_QUEUE) && tun->numqueues == 1) in tun_attach()
619 tun->numqueues + tun->numdisabled == MAX_TAP_QUEUES) in tun_attach()
631 tfile->queue_index = tun->numqueues; in tun_attach()
634 rcu_assign_pointer(tun->tfiles[tun->numqueues], tfile); in tun_attach()
635 tun->numqueues++; in tun_attach()
815 u32 numqueues = 0; in tun_net_xmit() local
819 numqueues = ACCESS_ONCE(tun->numqueues); in tun_net_xmit()
822 if (txq >= numqueues) in tun_net_xmit()
825 if (numqueues == 1) { in tun_net_xmit()
858 if (skb_queue_len(&tfile->socket.sk->sk_receive_queue) * numqueues in tun_net_xmit()
1643 (tun->numqueues + tun->numdisabled > 1)) { in tun_set_iff()
1819 for (i = 0; i < tun->numqueues; i++) { in tun_attach_filter()
1838 for (i = 0; i < tun->numqueues; i++) { in tun_set_sndbuf()
2131 tun_detach_filter(tun, tun->numqueues); in __tun_chr_ioctl()