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

Function vhost_user_get_features

dpdk/lib/vhost/vhost_user.c:290–305  ·  view source on GitHub ↗

* The features that we support are requested. */

Source from the content-addressed store, hash-verified

288 * The features that we support are requested.
289 */
290static int
291vhost_user_get_features(struct virtio_net **pdev,
292 struct vhu_msg_context *ctx,
293 int main_fd __rte_unused)
294{
295 struct virtio_net *dev = *pdev;
296 uint64_t features = 0;
297
298 rte_vhost_driver_get_features(dev->ifname, &features);
299
300 ctx->msg.payload.u64 = features;
301 ctx->msg.size = sizeof(ctx->msg.payload.u64);
302 ctx->fd_num = 0;
303
304 return RTE_VHOST_MSG_RESULT_REPLY;
305}
306
307/*
308 * The queue number that we support are requested.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected