| 744 | } |
| 745 | |
| 746 | void |
| 747 | vhost_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 |
no outgoing calls
no test coverage detected