[dpdk-dev] [PATCH] vhost: Clean iotlb cache on vring stop

2021-08-27 Thread Eugenio Pérez
s new gigantic page, vhost needs to scan IOTLB_CACHE_SIZE - 1 for each translation at worst. Signed-off-by: Eugenio Pérez Reported-by: Pei Zhang --- lib/vhost/vhost_user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c index 29a4c9af60..7de48

[dpdk-dev] [PATCH] vhost: flush shadow tx if there is no more packets

2020-01-29 Thread Eugenio Pérez
obtained the expected (count) packets. If it happens to obtain "count" packets and there is no more available packets the caller needs to keep call virtio_dev_tx_packed again. Signed-off-by: Eugenio Pérez --- lib/librte_vhost/virtio_net.c | 27 ++- 1 file c

[dpdk-dev] [PATCH 1/1] vhost: fix iotlb mempool single-consumer flag

2020-08-10 Thread Eugenio Pérez
(libtsan.so.0+0x2a68d) -- As a consequence, the two threads can modify the same entry of the mempool. Usually, this cause a loop in iotlb_pending_entries list. Fixes: d012d1f293f4 ("vhost: add IOTLB helper functions") Signed-off-by: Eugenio Pérez --- lib/librte_vhost/iotlb.c | 3 +--

[dpdk-dev] [PATCH 0/1] vhost: fix iotlb mempool single-consumer flag

2020-08-10 Thread Eugenio Pérez
ever, I have not found why I cannot see the issue in split, so the safer option is to never set it. Any comments? Thanks! Eugenio Pérez (1): vhost: fix iotlb mempool single-consumer flag lib/librte_vhost/iotlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.18.1

[dpdk-dev] [PATCH v2 1/1] vhost: fix iotlb mempool single-consumer flag

2020-08-31 Thread Eugenio Pérez
ned-off-by: Eugenio Pérez --- lib/librte_vhost/iotlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/librte_vhost/iotlb.c b/lib/librte_vhost/iotlb.c index 5b3a0c090..e0b67721b 100644 --- a/lib/librte_vhost/iotlb.c +++ b/lib/librte_vhost/iotlb.c @@ -321,8 +321,7 @@ vhost_user_

[dpdk-dev] [PATCH v2 0/1] vhost: Make iotlb mempool not single-consumer

2020-08-31 Thread Eugenio Pérez
commit message to not to include all trace and commands. Eugenio Pérez (1): vhost: fix iotlb mempool single-consumer flag lib/librte_vhost/iotlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.18.1