| 271 | } |
| 272 | |
| 273 | static int |
| 274 | vhost_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. |
nothing calls this directly
no test coverage detected