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

Function vhost_enable_guest_notification

dpdk/lib/vhost/vhost.c:1483–1498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1481}
1482
1483int
1484vhost_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
1500int
1501rte_vhost_enable_guest_notification(int vid, uint16_t queue_id, int enable)

Callers 3

vduse_vring_setupFunction · 0.85

Calls 3

vq_is_packedFunction · 0.85

Tested by

no test coverage detected