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

Function rte_vhost_log_used_vring

dpdk/lib/vhost/vhost.c:1580–1598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1578}
1579
1580void
1581rte_vhost_log_used_vring(int vid, uint16_t vring_idx,
1582 uint64_t offset, uint64_t len)
1583{
1584 struct virtio_net *dev;
1585 struct vhost_virtqueue *vq;
1586
1587 dev = get_device(vid);
1588 if (dev == NULL)
1589 return;
1590
1591 if (vring_idx >= VHOST_MAX_VRING)
1592 return;
1593 vq = dev->virtqueue[vring_idx];
1594 if (!vq)
1595 return;
1596
1597 vhost_log_used_vring(dev, vq, offset, len);
1598}
1599
1600uint32_t
1601rte_vhost_rx_queue_count(int vid, uint16_t qid)

Callers 4

mlx5_vdpa_lm_logFunction · 0.85
vdpa_ifcvf_stopFunction · 0.85
m_ifcvf_stopFunction · 0.85

Calls 2

get_deviceFunction · 0.85
vhost_log_used_vringFunction · 0.85

Tested by

no test coverage detected