From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A810EA04C3; Tue, 26 Nov 2019 10:54:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 82AD42A5D; Tue, 26 Nov 2019 10:54:15 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6EDD7CF3 for ; Tue, 26 Nov 2019 10:54:14 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Nov 2019 01:54:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,245,1571727600"; d="scan'208";a="233695910" Received: from silpixa00398673.ir.intel.com (HELO silpixa00398673.ger.corp.intel.com) ([10.237.223.136]) by fmsmga004.fm.intel.com with ESMTP; 26 Nov 2019 01:54:12 -0800 From: Fan Zhang To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, Fan Zhang Date: Tue, 26 Nov 2019 09:54:10 +0000 Message-Id: <20191126095410.72395-1-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] example/vhost_crypto: fix incorrect fetch size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Coverity issue: 343401 Fixes: f5188211c721 ("examples/vhost_crypto: add sample application") Cc: roy.fan.zhang@intel.com Signed-off-by: Fan Zhang --- 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