From patchwork Tue Jul 27 15:42:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fan Zhang X-Patchwork-Id: 96329 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E905CA0C4B; Tue, 27 Jul 2021 17:42:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 66269410F0; Tue, 27 Jul 2021 17:42:52 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id DC566410ED for ; Tue, 27 Jul 2021 17:42:50 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10057"; a="210581634" X-IronPort-AV: E=Sophos;i="5.84,274,1620716400"; d="scan'208";a="210581634" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2021 08:42:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,274,1620716400"; d="scan'208";a="505936643" Received: from silpixa00400885.ir.intel.com ([10.243.23.122]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jul 2021 08:42:47 -0700 From: Fan Zhang To: dev@dpdk.org Cc: gakhil@marvell.com, Fan Zhang Date: Tue, 27 Jul 2021 16:42:46 +0100 Message-Id: <20210727154246.59519-1-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dpdk-dev] crypto/qat: fix failed raw data path dequeue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" This patch fixes the raw data path dequeue burst fail problem. Previously the in case the queue is full and not all packets asked to be dequeued are processed, the dequeue burst will never happen. Fixes: c21574edc52a ("cryptodev: add dequeue count parameter in raw API") Cc: roy.fan.zhang@intel.com Signed-off-by: Fan Zhang --- drivers/crypto/qat/qat_sym_hw_dp.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/crypto/qat/qat_sym_hw_dp.c b/drivers/crypto/qat/qat_sym_hw_dp.c index 4305579b54..ac9ac05363 100644 --- a/drivers/crypto/qat/qat_sym_hw_dp.c +++ b/drivers/crypto/qat/qat_sym_hw_dp.c @@ -744,14 +744,6 @@ qat_sym_dp_dequeue_burst(void *qp_data, uint8_t *drv_ctx, n = get_dequeue_count(resp_opaque); if (unlikely(n == 0)) return 0; - else if (n > 1) { - head = (head + rx_queue->msg_size * (n - 1)) & - rx_queue->modulo_mask; - resp = (struct icp_qat_fw_comn_resp *)( - (uint8_t *)rx_queue->base_addr + head); - if (*(uint32_t *)resp == ADF_RING_EMPTY_SIG) - return 0; - } } else { if (unlikely(max_nb_to_dequeue == 0)) return 0;