| 1481 | } |
| 1482 | |
| 1483 | int |
| 1484 | vhost_enable_guest_notification(struct virtio_net *dev, |
| 1485 | struct vhost_virtqueue *vq, int enable) |
| 1486 | { |
| 1487 | /* |
| 1488 | * If the virtqueue is not ready yet, it will be applied |
| 1489 | * when it will become ready. |
| 1490 | */ |
| 1491 | if (!vq->ready) |
| 1492 | return 0; |
| 1493 | |
| 1494 | if (vq_is_packed(dev)) |
| 1495 | return vhost_enable_notify_packed(dev, vq, enable); |
| 1496 | else |
| 1497 | return vhost_enable_notify_split(dev, vq, enable); |
| 1498 | } |
| 1499 | |
| 1500 | int |
| 1501 | rte_vhost_enable_guest_notification(int vid, uint16_t queue_id, int enable) |
no test coverage detected