From patchwork Thu Jun 27 09:36:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 167896 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2094032ilk; Thu, 27 Jun 2019 02:37:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqw55sx/lkONEh5JaWcHRysl5YWm777sUZiytXNPc2SW+x14W8VZvnO5uceP9XV4n+eyORGd X-Received: by 2002:adf:df10:: with SMTP id y16mr2503651wrl.302.1561628275381; Thu, 27 Jun 2019 02:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561628275; cv=none; d=google.com; s=arc-20160816; b=0TTqZahU1GGJqW6DlHMVmbxgSVEhrimPzdOoWHy67iS2I9EfixH/RBbPRFXkUVb6dV f+kmxaLYeacjtwL/IKbAyFfZhbdEsEtaJ39BtwpAE3Y0w5pNH2PB8l2MXOsTriF744sH MvBqZD0v1oSwtcXhYRcVvM06LEK7KvvItvQrImq61oVGYO+3d0WQomoqvOz1p/ad6hOQ PZSWri1w/ivnlHC0zjZAkp70Lok9t5mxWJP9pWey7pOdpKNQdTtr/6nqIb2XKWpe5Kl3 PcEvM/N2vCIahSy8WkzK/X+lLWBhAumWCYsGn7PjbKS1lmFVHBNk+YsvXYQvutUdGAmt BmFQ== 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:message-id:date:cc:to :from; bh=V+B3Lda3qtWvlz3tZIT4WCjTXOHEcOQpE4f9ZYdkaaE=; b=z6O1QHlJNMMBGtZAijPi0kj0wJlozdJpoa1vMzBjPG6pkw+HMGT2VyN4akdYeJfJt6 78HIpjifpmK9tDPuNddTJF0G95cp+Bc6+AxBqGOrfxC4Pa2kLuDCAzr0tP9HAfdd4u1r FUaK0XylBAJmoHyv+nhssxa+HXw5hqtAp0veP7wTUex685EPje6QaWej/X/0mdBIKrm0 GaLPakecW9zdibA837W2xi5HCVE/04AcdwDbTT1sHwCOQf1EGVvvzlY5QjdUMVEdKcwE xzS/2n49p+N9Grsasry8+cfwNC0gMzl2/Ei/HCo9yEA96FgHFFxuGWA7+ICjK28OPr7q JxpA== 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 v12si3173329wmh.39.2019.06.27.02.37.55; Thu, 27 Jun 2019 02:37:55 -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 BB8302B99; Thu, 27 Jun 2019 11:37:54 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 32EEA28EE; Thu, 27 Jun 2019 11:37:53 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0FCCF200B9C; Thu, 27 Jun 2019 11:37:53 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6C656200B9A; Thu, 27 Jun 2019 11:37:50 +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 A7F654030D; Thu, 27 Jun 2019 17:37:46 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: jerinj@marvell.com, Nipun Gupta , stable@dpdk.org Date: Thu, 27 Jun 2019 15:06:04 +0530 Message-Id: <20190627093604.5275-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] event/dpaa2: fix to return correct value for timeout ticks 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" From: Nipun Gupta Fixes: 0ce3ce7c275c ("event/dpaa2: add configuration functions") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta --- drivers/event/dpaa2/dpaa2_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 8d168b028..926b7edd8 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -640,7 +640,7 @@ dpaa2_eventdev_timeout_ticks(struct rte_eventdev *dev, uint64_t ns, EVENTDEV_INIT_FUNC_TRACE(); RTE_SET_USED(dev); - *timeout_ticks = ns * scale; + *timeout_ticks = ns / scale; return 0; }