| 109 | vhost_user_iotlb_cache_random_evict(struct virtio_net *dev); |
| 110 | |
| 111 | static void |
| 112 | vhost_user_iotlb_pending_remove_all(struct virtio_net *dev) |
| 113 | { |
| 114 | struct vhost_iotlb_entry *node, *temp_node; |
| 115 | |
| 116 | rte_rwlock_write_lock(&dev->iotlb_pending_lock); |
| 117 | |
| 118 | RTE_TAILQ_FOREACH_SAFE(node, &dev->iotlb_pending_list, next, temp_node) { |
| 119 | TAILQ_REMOVE(&dev->iotlb_pending_list, node, next); |
| 120 | vhost_user_iotlb_pool_put(dev, node); |
| 121 | } |
| 122 | |
| 123 | rte_rwlock_write_unlock(&dev->iotlb_pending_lock); |
| 124 | } |
| 125 | |
| 126 | bool |
| 127 | vhost_user_iotlb_pending_miss(struct virtio_net *dev, uint64_t iova, uint8_t perm) |
no test coverage detected