From patchwork Wed Dec 7 06:49:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ganapati Kundapura X-Patchwork-Id: 120521 X-Patchwork-Delegate: jerinj@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 7C0F8A00C3; Wed, 7 Dec 2022 07:50:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 611A042D37; Wed, 7 Dec 2022 07:49:55 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 29CAE410D7 for ; Wed, 7 Dec 2022 07:49:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670395791; x=1701931791; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wPOXmckpCan8HjZStt0DsE5OHeaa9Hl2jP/GbcoKWjo=; b=jklqeK7x8A3FX8v9irF6j5GZu2/4lpLZOv5CoEFEwz/eJ6EwrqPuQlTd b9UqmURfp2EuPIBV9NFClb44Lf5ng8s6UJnP47yZuKIty76XbOV55aBDF wTqeFM9mJ2d2Hjy7FpD49L2vMOG7H1popdVDWU+hPyvKcuchAQ+VjIM2s BLhVFcfhBX5eUy7iinauqh6cEWobtVv0SifvhfHPTGdU+Ay0oZVT/b2eK N63y3p4TNd+Yj2t7DFEqTgpJ74a3efIZgLqPv6jepLDN5uQbxT984AzGJ Yk/LN/ghqeWqA9+x8sTxzz157dxN0SAg7vZ8PJqUKGFHYy1NvwP8nFeYu g==; X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="304446599" X-IronPort-AV: E=Sophos;i="5.96,223,1665471600"; d="scan'208";a="304446599" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 22:49:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="975352950" X-IronPort-AV: E=Sophos;i="5.96,223,1665471600"; d="scan'208";a="975352950" Received: from txandevlnx322.an.intel.com ([10.123.117.44]) by fmsmga005.fm.intel.com with ESMTP; 06 Dec 2022 22:49:49 -0800 From: Ganapati Kundapura To: dev@dpdk.org, jerinj@marvell.com, s.v.naga.harish.k@intel.com, abhinandan.gujjar@intel.com Cc: jay.jayatheerthan@intel.com, vfialko@marvell.com Subject: [PATCH v3 5/5] eventdev/crypto: fix failed events Date: Wed, 7 Dec 2022 00:49:45 -0600 Message-Id: <20221207064945.1665368-5-ganapati.kundapura@intel.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20221207064945.1665368-1-ganapati.kundapura@intel.com> References: <20221201064652.1885734-1-ganapati.kundapura@intel.com> <20221207064945.1665368-1-ganapati.kundapura@intel.com> MIME-Version: 1.0 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 Circular buffer stores events failed to enqueue to eventdev for retrying later. Current implementation adds the same crypto op to circular buffer instead of pointing all the ops in a batch. This fix updates the pointer to pointing to correct ops in the batch. Fixes: 7901eac3409a ("eventdev: add crypto adapter implementation") Signed-off-by: Ganapati Kundapura Acked-by: Abhinandan Gujjar --- v3: * Updated commit message v2: * Updated subject line commit message diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c index 31b8255..5d962a1 100644 --- a/lib/eventdev/rte_event_crypto_adapter.c +++ b/lib/eventdev/rte_event_crypto_adapter.c @@ -753,7 +753,7 @@ eca_crypto_adapter_deq_run(struct event_crypto_adapter *adapter, for (i = nb_enqueued; i < n; i++) eca_circular_buffer_add( &adapter->ebuf, - ops[nb_enqueued]); + ops[i]); check: nb_deq += n;