MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vhost_user_get_queue_num

Function vhost_user_get_queue_num

dpdk/lib/vhost/vhost_user.c:310–325  ·  view source on GitHub ↗

* The queue number that we support are requested. */

Source from the content-addressed store, hash-verified

308 * The queue number that we support are requested.
309 */
310static int
311vhost_user_get_queue_num(struct virtio_net **pdev,
312 struct vhu_msg_context *ctx,
313 int main_fd __rte_unused)
314{
315 struct virtio_net *dev = *pdev;
316 uint32_t queue_num = 0;
317
318 rte_vhost_driver_get_queue_num(dev->ifname, &queue_num);
319
320 ctx->msg.payload.u64 = (uint64_t)queue_num;
321 ctx->msg.size = sizeof(ctx->msg.payload.u64);
322 ctx->fd_num = 0;
323
324 return RTE_VHOST_MSG_RESULT_REPLY;
325}
326
327/*
328 * We receive the negotiated features supported by us and the virtio device.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected