• Home
  • Raw
  • Download

Lines Matching refs:numqueues

211 	unsigned int            numqueues;  member
569 u32 numqueues = 0; in tun_automq_select_queue() local
571 numqueues = READ_ONCE(tun->numqueues); in tun_automq_select_queue()
580 txq = ((u64)txq * numqueues) >> 32; in tun_automq_select_queue()
589 u32 numqueues; in tun_ebpf_select_queue() local
592 numqueues = READ_ONCE(tun->numqueues); in tun_ebpf_select_queue()
593 if (!numqueues) in tun_ebpf_select_queue()
600 return ret % numqueues; in tun_ebpf_select_queue()
631 netif_set_real_num_tx_queues(tun->dev, tun->numqueues); in tun_set_real_num_queues()
632 netif_set_real_num_rx_queues(tun->dev, tun->numqueues); in tun_set_real_num_queues()
691 BUG_ON(index >= tun->numqueues); in __tun_detach()
694 tun->tfiles[tun->numqueues - 1]); in __tun_detach()
697 rcu_assign_pointer(tun->tfiles[tun->numqueues - 1], in __tun_detach()
700 --tun->numqueues; in __tun_detach()
708 tun_flow_delete_by_queue(tun, tun->numqueues + 1); in __tun_detach()
718 if (tun && tun->numqueues == 0 && tun->numdisabled == 0) { in __tun_detach()
750 int i, n = tun->numqueues; in tun_detach_all()
759 --tun->numqueues; in tun_detach_all()
766 BUG_ON(tun->numqueues != 0); in tun_detach_all()
806 if (!(tun->flags & IFF_MULTI_QUEUE) && tun->numqueues == 1) in tun_attach()
811 tun->numqueues + tun->numdisabled == MAX_TAP_QUEUES) in tun_attach()
832 tfile->queue_index = tun->numqueues; in tun_attach()
876 rcu_assign_pointer(tun->tfiles[tun->numqueues], tfile); in tun_attach()
877 tun->numqueues++; in tun_attach()
1034 if (tun->numqueues == 1 && static_branch_unlikely(&rps_needed)) { in tun_automq_xmit()
1204 for (i = 0; i < tun->numqueues; i++) { in tun_xdp_set()
1251 if (!tun->numqueues) in tun_net_change_carrier()
1286 u32 numqueues; in tun_xdp_xmit() local
1297 numqueues = READ_ONCE(tun->numqueues); in tun_xdp_xmit()
1298 if (!numqueues) { in tun_xdp_xmit()
1304 numqueues]); in tun_xdp_xmit()
1954 if (!rcu_access_pointer(tun->steering_prog) && tun->numqueues > 1 && in tun_get_user()
2371 if (nla_put_u32(skb, IFLA_TUN_NUM_QUEUES, tun->numqueues)) in tun_fill_info()
2500 if (!rcu_dereference(tun->steering_prog) && tun->numqueues > 1 && in tun_xdp_one()
2744 (tun->numqueues + tun->numdisabled > 1)) { in tun_set_iff()
2947 for (i = 0; i < tun->numqueues; i++) { in tun_attach_filter()
2967 for (i = 0; i < tun->numqueues; i++) { in tun_set_sndbuf()
3305 tun_detach_filter(tun, tun->numqueues); in __tun_chr_ioctl()
3611 int n = tun->numqueues + tun->numdisabled; in tun_queue_resize()
3618 for (i = 0; i < tun->numqueues; i++) { in tun_queue_resize()
3649 for (i = 0; i < tun->numqueues; i++) { in tun_device_event()