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

Function vhost_user_iotlb_pending_remove_all

dpdk/lib/vhost/iotlb.c:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109vhost_user_iotlb_cache_random_evict(struct virtio_net *dev);
110
111static void
112vhost_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
126bool
127vhost_user_iotlb_pending_miss(struct virtio_net *dev, uint64_t iova, uint8_t perm)

Calls 1

Tested by

no test coverage detected