From patchwork Wed Feb 24 12:43:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 386851 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp342814jap; Wed, 24 Feb 2021 04:45:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFjnzV9EQ5jGZUGDTpSVy8JUCOhvDI7V9CZFl2YOs1d6iscyJtTeXfRWqpc2ktUvSoTWeU X-Received: by 2002:a17:907:9483:: with SMTP id dm3mr30668265ejc.120.1614170725744; Wed, 24 Feb 2021 04:45:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614170725; cv=none; d=google.com; s=arc-20160816; b=zm3f4tavTg8EZqemcBvWPLbpQTC4hnJ/MhAFOF8EYslpZjaV1UXMz4i7lY0t1rW33I OhJa25HGQmuCytReRa4boEJdhbqZ/TBX4RYBB3a+IV3M15vbJm6+hRsuSIUEHH0ALZHu VaKDTLzKefizmAutjAWlWQt02dvQ8orVq4dxw9hDr+buHoXzNQa2jUVwVqfXv+qhf/G6 mU0312RKN3p3FBQvEqVMeuY7TMNf5QU78IGjpCrEUVDiFCDiPHDuzkDWz4X/Xrx6q2iU VAjppNdWgaPqMo8KsCK2uGr3W9XB2xH+LpkMeOPHH90GShZAaBmIEd0LIkN6uYX0NRbG o7QA== 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=xnQw7jn/0ho+VFas0skBONQpwSlOJw0G7iNAnYyZ1uw=; b=BJuGIjT+knAGotwz6TtfFAfAGNXyX72vO8NrDBXHaxmU1BSRCHAT6+AwblF+lWcCwr FLP18nl7mp0FRz5K0tWUvim5/+Rcs54J3+2hK2iejOG4wPrhlQ8pdbglGtHIZ11uUS4n +s7qJZBPOAK5ZuLMjza4H4aYzoMvVo0uC80aPVLCn/3e9+K7s2pc8oVgNH5GFZf06jSF cq41lrQSwupN3VSJylSzpTD1C7HLVtqpKQktDJhVAuiZ9afKgAMq0cgEN2+93FuZs4Gi FOdSUspSWaUZtWAKdCk98+p0M3e5zNiGvWq1fLtOgaTtscgPqbzdyOnOUfPKvbwQG3il a8hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.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 mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id e3si1364259ejm.395.2021.02.24.04.45.25; Wed, 24 Feb 2021 04:45:25 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 059C61608AA; Wed, 24 Feb 2021 13:43:41 +0100 (CET) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mails.dpdk.org (Postfix) with ESMTP id 1517516084B for ; Wed, 24 Feb 2021 13:43:28 +0100 (CET) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E37061A039F; Wed, 24 Feb 2021 13:43:27 +0100 (CET) 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 C98501A03A4; Wed, 24 Feb 2021 13:43:25 +0100 (CET) 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 2784D40330; Wed, 24 Feb 2021 13:43:23 +0100 (CET) From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Hemant Agrawal Date: Wed, 24 Feb 2021 18:13:03 +0530 Message-Id: <20210224124311.29799-16-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210224124311.29799-1-hemant.agrawal@nxp.com> References: <20210211141620.12482-1-hemant.agrawal@nxp.com> <20210224124311.29799-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v3 15/23] net/dpaa2: change Tx queue congestion settings 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" change the tx queue congestion notification to the ratio of current queue size instead of fixed. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 412f970800..586d116227 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -922,9 +922,9 @@ dpaa2_dev_tx_queue_setup(struct rte_eth_dev *dev, cong_notif_cfg.units = DPNI_CONGESTION_UNIT_FRAMES; cong_notif_cfg.threshold_entry = nb_tx_desc; /* Notify that the queue is not congested when the data in - * the queue is below this thershold. + * the queue is below this thershold.(90% of value) */ - cong_notif_cfg.threshold_exit = nb_tx_desc - 24; + cong_notif_cfg.threshold_exit = (nb_tx_desc * 9) / 10; cong_notif_cfg.message_ctx = 0; cong_notif_cfg.message_iova = (size_t)DPAA2_VADDR_TO_IOVA(dpaa2_q->cscn);