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

Function vhost_destroy_device_notify

dpdk/lib/vhost/vhost.c:746–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746void
747vhost_destroy_device_notify(struct virtio_net *dev)
748{
749 struct rte_vdpa_device *vdpa_dev;
750
751 if (dev->flags & VIRTIO_DEV_RUNNING) {
752 vdpa_dev = dev->vdpa_dev;
753 if (vdpa_dev && vdpa_dev->ops->dev_close)
754 vdpa_dev->ops->dev_close(dev->vid);
755 dev->flags &= ~VIRTIO_DEV_RUNNING;
756 if (dev->notify_ops->destroy_device)
757 dev->notify_ops->destroy_device(dev->vid);
758 }
759}
760
761/*
762 * Invoked when there is the vhost-user connection is broken (when

Callers 5

vhost_user_read_cbFunction · 0.85
vduse_device_stopFunction · 0.85
vhost_destroy_deviceFunction · 0.85
vhost_user_reset_ownerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected