Lines Matching refs:queues
61 static void vhost_user_stop(int queues, NetClientState *ncs[]) in vhost_user_stop() argument
66 for (i = 0; i < queues; i++) { in vhost_user_stop()
78 static int vhost_user_start(int queues, NetClientState *ncs[], in vhost_user_start() argument
89 for (i = 0; i < queues; i++) { in vhost_user_start()
106 if (queues > max_queues) { in vhost_user_start()
253 int queues, i; in chr_closed_bh() local
255 queues = qemu_find_net_clients_except(name, ncs, in chr_closed_bh()
258 assert(queues < MAX_QUEUE_NUM); in chr_closed_bh()
262 for (i = queues -1; i >= 0; i--) { in chr_closed_bh()
283 int queues; in net_vhost_user_event() local
285 queues = qemu_find_net_clients_except(name, ncs, in net_vhost_user_event()
288 assert(queues < MAX_QUEUE_NUM); in net_vhost_user_event()
295 if (vhost_user_start(queues, ncs, s->vhost_user) < 0) { in net_vhost_user_event()
335 int queues) in net_vhost_user_init() argument
344 assert(queues > 0); in net_vhost_user_init()
347 for (i = 0; i < queues; i++) { in net_vhost_user_init()
421 int queues; in net_init_vhost_user() local
433 queues = vhost_user_opts->has_queues ? vhost_user_opts->queues : 1; in net_init_vhost_user()
434 if (queues < 1 || queues > MAX_QUEUE_NUM) { in net_init_vhost_user()
441 return net_vhost_user_init(peer, "vhost_user", name, chr, queues); in net_init_vhost_user()