From patchwork Tue Oct 1 11:33:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 174837 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8415917ill; Tue, 1 Oct 2019 04:36:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCcVNncWVCTtO6n/immnM7OSQoGQWW2G3tHBAsqqEbjnMdNs+UPiQ7bGozgCG0KyU8Zqav X-Received: by 2002:a50:ee10:: with SMTP id g16mr24805391eds.267.1569929790780; Tue, 01 Oct 2019 04:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569929790; cv=none; d=google.com; s=arc-20160816; b=GmgMqGtMumP02gEIglaAj/RpeWHPD6EU6lf8TDpdBpOsYjgmcZ5BGuvxqLtFZpDtJt QY83rGMRQ+Brna9UreWKZgd5XSB+dc2oc3x9uR7b8Mzo72GviArFH3D5nqK12DbIXKd7 ynjxKw39ZdtuTOojHuWz8IOjcFvYDGsecSUb0ubpJbM0apDm5Jdl7ghvuHv2ZRogDwMd EF/TgT10RssVY8q8gLVEpqmpl2FYeQ3NaoU2N11clSl40tI01Gpz9Z0Hbxv+wNDRw6W/ gIigyVOhDyh/FtSLNePsv6vdTjFWMjZbgB+n+reH26PebDOqYjuIedGz6RCCHwRfTcHt 1JLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=k4c4jVCnZYyUoisZ3u05GU9Y2MpQQCLtDX+DoYwQJ24=; b=RgUpvZ84sC+gumfkPzDWoEMksj1Mmw0k/bQizUU5SlsxemnaXsXhn766YhOLPqctZQ lpP5NVC7TthX4NooHyjScPZg4xWTutpaKFT1JvMm01k5cNhc+QnLZImmbAVMMKAkl0QX HS50gZ6Ik4SiZstXig3jV3g4WopY2k05v7u3y6GAgdkVR5rHNUf6RHbBrF+gWWt86MS3 s84vskX34VjvVXVe+5NbmOhtxMuD0+7uXkFoRkalGiUHe5dHB8TYyOJR28vVY5TKMxRE B0T19A2WBFd+NpFgdbVOekjBpEPOvo1WqQNp2t/fRGsvJ3cSELtPgth6MKgRAPvfJEqY GTyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id h91si9306152edd.270.2019.10.01.04.36.30; Tue, 01 Oct 2019 04:36:30 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7507E1B952; Tue, 1 Oct 2019 13:36:12 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 993204C8D for ; Tue, 1 Oct 2019 13:36:10 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 74D621A094A; Tue, 1 Oct 2019 13:36:10 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A757E1A0558; Tue, 1 Oct 2019 13:36:08 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E4E6A40328; Tue, 1 Oct 2019 19:36:02 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: jerinj@marvell.com, abhinandan.gujjar@intel.com Date: Tue, 1 Oct 2019 17:03:37 +0530 Message-Id: <20191001113339.21767-4-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191001113339.21767-1-hemant.agrawal@nxp.com> References: <20191001113339.21767-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 4/6] test/event_crypto: support to release the atomic ctxt 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" The test cases uses ATOMIC queues. Once the packet is recived it is required to release the ATOMIC ctxt, at least for the HW based eventdevs. This patch makes empty dq call, which in turn releases the atomic ctxt. Signed-off-by: Hemant Agrawal --- app/test/test_event_crypto_adapter.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.1 diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index 8d42462d8..b9e3a439e 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -357,6 +357,12 @@ send_op_recv_ev(struct rte_crypto_op *op) rte_pause(); recv_op = ev.event_ptr; + + /* In case of Atomic/Ordered Queue, call dequeue one more time + * to release, if there is any atomic context to be freed + */ + rte_event_dequeue_burst(evdev, TEST_APP_PORT_ID, &ev, NUM, 0); + #if PKT_TRACE struct rte_mbuf *m = recv_op->sym->m_src; rte_pktmbuf_dump(stdout, m, rte_pktmbuf_pkt_len(m));