| 124 | } |
| 125 | |
| 126 | bool |
| 127 | vhost_user_iotlb_pending_miss(struct virtio_net *dev, uint64_t iova, uint8_t perm) |
| 128 | { |
| 129 | struct vhost_iotlb_entry *node; |
| 130 | bool found = false; |
| 131 | |
| 132 | rte_rwlock_read_lock(&dev->iotlb_pending_lock); |
| 133 | |
| 134 | TAILQ_FOREACH(node, &dev->iotlb_pending_list, next) { |
| 135 | if ((node->iova == iova) && (node->perm == perm)) { |
| 136 | found = true; |
| 137 | break; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | rte_rwlock_read_unlock(&dev->iotlb_pending_lock); |
| 142 | |
| 143 | return found; |
| 144 | } |
| 145 | |
| 146 | void |
| 147 | vhost_user_iotlb_pending_insert(struct virtio_net *dev, uint64_t iova, uint8_t perm) |
no outgoing calls
no test coverage detected