[dpdk-dev] [PATCH] example/vhost_crypto: fix incorrect fetch size
Fan Zhang
roy.fan.zhang at intel.com
Tue Nov 26 10:54:10 CET 2019
Coverity issue: 343401
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
Cc: roy.fan.zhang at intel.com
Signed-off-by: Fan Zhang <roy.fan.zhang at intel.com>
---
examples/vhost_crypto/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c
index 1d7ba9419..5d80bcaca 100644
--- a/examples/vhost_crypto/main.c
+++ b/examples/vhost_crypto/main.c
@@ -387,7 +387,7 @@ vhost_crypto_worker(void *arg)
continue;
for (j = 0; j < NB_VIRTIO_QUEUES; j++) {
- to_fetch = RTE_MIN(burst_size,
+ to_fetch = RTE_MAX(burst_size,
(NB_CRYPTO_DESCRIPTORS -
info->nb_inflight_ops));
fetched = rte_vhost_crypto_fetch_requests(
--
2.20.1
More information about the dev
mailing list