| 197 | } |
| 198 | |
| 199 | static void |
| 200 | vhost_user_iotlb_cache_remove_all(struct virtio_net *dev) |
| 201 | { |
| 202 | struct vhost_iotlb_entry *node, *temp_node; |
| 203 | |
| 204 | vhost_user_iotlb_wr_lock_all(dev); |
| 205 | |
| 206 | RTE_TAILQ_FOREACH_SAFE(node, &dev->iotlb_list, next, temp_node) { |
| 207 | vhost_user_iotlb_clear_dump(node, NULL, NULL); |
| 208 | |
| 209 | TAILQ_REMOVE(&dev->iotlb_list, node, next); |
| 210 | vhost_user_iotlb_remove_notify(dev, node); |
| 211 | vhost_user_iotlb_pool_put(dev, node); |
| 212 | } |
| 213 | |
| 214 | dev->iotlb_cache_nr = 0; |
| 215 | |
| 216 | vhost_user_iotlb_wr_unlock_all(dev); |
| 217 | } |
| 218 | |
| 219 | static void |
| 220 | vhost_user_iotlb_cache_random_evict(struct virtio_net *dev) |
no test coverage detected