From patchwork Mon May 8 10:41:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianli Lai X-Patchwork-Id: 126751 X-Patchwork-Delegate: ferruh.yigit@amd.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 421B942A90; Mon, 8 May 2023 04:41:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0B0040DDC; Mon, 8 May 2023 04:41:50 +0200 (CEST) Received: from smtp.tom.com (smtprz25.163.net [106.38.219.110]) by mails.dpdk.org (Postfix) with ESMTP id 9ACD040A84 for ; Mon, 8 May 2023 04:41:48 +0200 (CEST) Received: from my-app02.tom.com (my-app02.tom.com [127.0.0.1]) by freemail02.tom.com (Postfix) with ESMTP id 4DD54B00CC4 for ; Mon, 8 May 2023 10:41:46 +0800 (CST) Received: from my-app02.tom.com (HELO smtp.tom.com) ([127.0.0.1]) by my-app02 (TOM SMTP Server) with SMTP ID 208656568 for ; Mon, 08 May 2023 10:41:46 +0800 (CST) Received: from antispam1.tom.com (unknown [172.25.16.55]) by freemail02.tom.com (Postfix) with ESMTP id 38841B00CBF for ; Mon, 8 May 2023 10:41:46 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tom.com; s=201807; t=1683513706; bh=0O7IHORScCbFl27lC8fEb1ypLm5IZaMxPshK3YRgG6Q=; h=From:To:Cc:Subject:Date:From; b=TACHCBNgT/Z6reoDR9kku3hEUYjEi7q1Jy3i1o/cmMIZidoXbUyJbeGDoG0Zs1O4i f2FCfJCdqutJX1QwrU0RbcsRUgAUSaRaqlHwS8jKEhT+8Xrrl/K/OKZfYFyC6KicAe eL/3fir9o5OgLe/2iOjWIwz0OGCqR59GVyqOw/fM= Received: from antispam1.tom.com (antispam1.tom.com [127.0.0.1]) by antispam1.tom.com (Postfix) with ESMTP id 1DB13D416D0 for ; Mon, 8 May 2023 10:41:46 +0800 (CST) X-Virus-Scanned: Debian amavisd-new at antispam1.tom.com Received: from antispam1.tom.com ([127.0.0.1]) by antispam1.tom.com (antispam1.tom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nTrhaTEkh7_E for ; Mon, 8 May 2023 10:41:45 +0800 (CST) Received: from localhost.localdomain (unknown [113.87.163.63]) by antispam1.tom.com (Postfix) with ESMTPA id 8BF64D415EC; Mon, 8 May 2023 10:41:42 +0800 (CST) From: Tianli Lai To: dev@dpdk.org Cc: Hemant Agrawal , Sachin Saxena Subject: [PATCH] net/dpaa2: change threshold value Date: Mon, 8 May 2023 18:41:33 +0800 Message-Id: <20230508104133.3566-1-laitianli@tom.com> X-Mailer: git-send-email 2.27.0 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 this threshold value can be changed with function argument nb_rx_desc. Signed-off-by: Tianli Lai --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 679f33ae1a..ad892ded4a 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -829,7 +829,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, dpaa2_q->cgid, &taildrop); } else { /*enabling per rx queue congestion control */ - taildrop.threshold = CONG_THRESHOLD_RX_BYTES_Q; + taildrop.threshold = nb_rx_desc * 1024; taildrop.units = DPNI_CONGESTION_UNIT_BYTES; taildrop.oal = CONG_RX_OAL; DPAA2_PMD_DEBUG("Enabling Byte based Drop on queue= %d",