| 622 | } |
| 623 | |
| 624 | static __rte_always_inline void |
| 625 | vhost_log_cache_used_vring(struct virtio_net *dev, struct vhost_virtqueue *vq, |
| 626 | uint64_t offset, uint64_t len) |
| 627 | { |
| 628 | if (unlikely(dev->features & (1ULL << VHOST_F_LOG_ALL))) { |
| 629 | if (unlikely(vq->log_guest_addr == 0)) |
| 630 | return; |
| 631 | __vhost_log_cache_write(dev, vq, vq->log_guest_addr + offset, |
| 632 | len); |
| 633 | } |
| 634 | } |
| 635 | |
| 636 | static __rte_always_inline void |
| 637 | vhost_log_used_vring(struct virtio_net *dev, struct vhost_virtqueue *vq, |
no test coverage detected