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

Function vhost_user_reset_owner

dpdk/lib/vhost/vhost_user.c:273–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273static int
274vhost_user_reset_owner(struct virtio_net **pdev,
275 struct vhu_msg_context *ctx __rte_unused,
276 int main_fd __rte_unused)
277{
278 struct virtio_net *dev = *pdev;
279
280 vhost_destroy_device_notify(dev);
281
282 cleanup_device(dev, 0);
283 reset_device(dev);
284 return RTE_VHOST_MSG_RESULT_OK;
285}
286
287/*
288 * The features that we support are requested.

Callers

nothing calls this directly

Calls 3

cleanup_deviceFunction · 0.85
reset_deviceFunction · 0.70

Tested by

no test coverage detected