Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 17.11.4
[deb_dpdk.git]
/
lib
/
librte_vhost
/
iotlb.c
diff --git
a/lib/librte_vhost/iotlb.c
b/lib/librte_vhost/iotlb.c
index
c11ebca
..
c6354fe
100644
(file)
--- a/
lib/librte_vhost/iotlb.c
+++ b/
lib/librte_vhost/iotlb.c
@@
-303,6
+303,13
@@
out:
return vva;
}
return vva;
}
+void
+vhost_user_iotlb_flush_all(struct vhost_virtqueue *vq)
+{
+ vhost_user_iotlb_cache_remove_all(vq);
+ vhost_user_iotlb_pending_remove_all(vq);
+}
+
int
vhost_user_iotlb_init(struct virtio_net *dev, int vq_index)
{
int
vhost_user_iotlb_init(struct virtio_net *dev, int vq_index)
{
@@
-315,8
+322,7
@@
vhost_user_iotlb_init(struct virtio_net *dev, int vq_index)
* The cache has already been initialized,
* just drop all cached and pending entries.
*/
* The cache has already been initialized,
* just drop all cached and pending entries.
*/
- vhost_user_iotlb_cache_remove_all(vq);
- vhost_user_iotlb_pending_remove_all(vq);
+ vhost_user_iotlb_flush_all(vq);
}
#ifdef RTE_LIBRTE_VHOST_NUMA
}
#ifdef RTE_LIBRTE_VHOST_NUMA