Lines Matching refs:numqueues

180 	unsigned int            numqueues;  member
527 u32 numqueues = 0; in tun_automq_select_queue() local
529 numqueues = READ_ONCE(tun->numqueues); in tun_automq_select_queue()
538 txq = ((u64)txq * numqueues) >> 32; in tun_automq_select_queue()
547 u32 numqueues; in tun_ebpf_select_queue() local
550 numqueues = READ_ONCE(tun->numqueues); in tun_ebpf_select_queue()
551 if (!numqueues) in tun_ebpf_select_queue()
558 return ret % numqueues; in tun_ebpf_select_queue()
589 netif_set_real_num_tx_queues(tun->dev, tun->numqueues); in tun_set_real_num_queues()
590 netif_set_real_num_rx_queues(tun->dev, tun->numqueues); in tun_set_real_num_queues()
650 BUG_ON(index >= tun->numqueues); in __tun_detach()
653 tun->tfiles[tun->numqueues - 1]); in __tun_detach()
656 rcu_assign_pointer(tun->tfiles[tun->numqueues - 1], in __tun_detach()
659 --tun->numqueues; in __tun_detach()
669 tun_flow_delete_by_queue(tun, tun->numqueues + 1); in __tun_detach()
679 if (tun && tun->numqueues == 0 && tun->numdisabled == 0) { in __tun_detach()
713 int i, n = tun->numqueues; in tun_detach_all()
722 --tun->numqueues; in tun_detach_all()
729 BUG_ON(tun->numqueues != 0); in tun_detach_all()
770 if (!(tun->flags & IFF_MULTI_QUEUE) && tun->numqueues == 1) in tun_attach()
775 tun->numqueues + tun->numdisabled == MAX_TAP_QUEUES) in tun_attach()
796 tfile->queue_index = tun->numqueues; in tun_attach()
841 rcu_assign_pointer(tun->tfiles[tun->numqueues], tfile); in tun_attach()
842 tun->numqueues++; in tun_attach()
1042 if (tun->numqueues == 1 && static_branch_unlikely(&rps_needed)) { in tun_automq_xmit()
1208 for (i = 0; i < tun->numqueues; i++) { in tun_xdp_set()
1240 if (!tun->numqueues) in tun_net_change_carrier()
1276 u32 numqueues; in tun_xdp_xmit() local
1286 numqueues = READ_ONCE(tun->numqueues); in tun_xdp_xmit()
1287 if (!numqueues) { in tun_xdp_xmit()
1293 numqueues]); in tun_xdp_xmit()
1951 if (!rcu_access_pointer(tun->steering_prog) && tun->numqueues > 1 && in tun_get_user()
2376 if (nla_put_u32(skb, IFLA_TUN_NUM_QUEUES, tun->numqueues)) in tun_fill_info()
2509 if (!rcu_dereference(tun->steering_prog) && tun->numqueues > 1 && in tun_xdp_one()
2763 (tun->numqueues + tun->numdisabled > 1)) { in tun_set_iff()
2923 for (i = 0; i < tun->numqueues; i++) { in tun_attach_filter()
2943 for (i = 0; i < tun->numqueues; i++) { in tun_set_sndbuf()
3324 tun_detach_filter(tun, tun->numqueues); in __tun_chr_ioctl()
3629 int n = tun->numqueues + tun->numdisabled; in tun_queue_resize()
3636 for (i = 0; i < tun->numqueues; i++) { in tun_queue_resize()
3667 for (i = 0; i < tun->numqueues; i++) { in tun_device_event()