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

Function vduse_device_stop

dpdk/lib/vhost/vduse.c:335–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335static void
336vduse_device_stop(struct virtio_net *dev)
337{
338 unsigned int i;
339
340 VHOST_LOG_CONFIG(dev->ifname, INFO, "Stopping device...\n");
341
342 vhost_destroy_device_notify(dev);
343
344 dev->flags &= ~VIRTIO_DEV_READY;
345
346 for (i = 0; i < dev->nr_vring; i++)
347 vduse_vring_cleanup(dev, i);
348
349 vhost_user_iotlb_flush_all(dev);
350}
351
352static void
353vduse_events_handler(int fd, void *arg, int *remove __rte_unused)

Callers 2

vduse_events_handlerFunction · 0.85
vduse_device_destroyFunction · 0.85

Calls 3

vduse_vring_cleanupFunction · 0.85

Tested by

no test coverage detected