From patchwork Thu May 7 10:46:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 186296 Delivered-To: patch@linaro.org Received: by 2002:a92:8d81:0:0:0:0:0 with SMTP id w1csp3041782ill; Thu, 7 May 2020 03:50:13 -0700 (PDT) X-Google-Smtp-Source: APiQypL0xqwFK3ompBAdTf2+EcZQGb8Zqy+yrtgC5eGke1GIaLlRDOshac+Q6Tp5Y+IeI6nwBf/L X-Received: by 2002:a05:6402:2032:: with SMTP id ay18mr10826127edb.16.1588848612875; Thu, 07 May 2020 03:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588848612; cv=none; d=google.com; s=arc-20160816; b=d4fX7prVI+lBrkrZmdaaKJv56vsCWhFBVuvcfKTFf4l/mkZ6SXIoiJJHF2Yh43nQkF yR15hzDs1kbdnDow3y8Lu4g2L3QV1OEGtB8r0C6/odLohPkSMT+bRECsbqEeP5woAgN+ otge6rlB1ieaSNx+2hqtw5vJad4uA6Zm6DokUeYsheqYMWMbLqUxNkANcY5sBrPSe+Wn OlltCPlO9B+yqhGJxoJmwozGxjRhBO8qOTp6d7x35P8i/xn8WebmoOgEv97SkL8QNZWb iJy0X51rQ/iYh+wKh7ZSV7bW/uJqWuYcZhyb2uLfYVFCmVY/m8wlUESmXOTBdoYfwhTP cP6Q== 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=TeE0jb5I4452h1qdWWIBt6ZKliK+TeCyae7H+TrFHQ4=; b=QpvgTl2UktvnFCUt2vecB6nAtzqTPIHnJCmchlTFCiAiDD3aaF2dKI1W4UcOCl8xvv /9CvB+0QMka8ywJ8K8gQuw1+9ayD9JPE6pdAfyEY/sxPFvZTe2DcRT3rqOWKUcAgeUXf nUoNkyHo38oHxDas7/QP2ULhhWK0Zbb9/fstnOpVu2twkYb73JCD8J+S4sZqQzj0r2Kp XvkT8uny0Bl6RTP19wnquNhpsmECkKKwlUMKa0LcXNSYSm1scuILnbiXeVSLpWAeKH/N GABk9iU6fgx0amd33632dGZbaO/TUyNk9iLcqDRvmucVcTyVrLeLrQYDoyTvZU5ukBsT nieA== 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 v28si2787072edx.335.2020.05.07.03.50.12; Thu, 07 May 2020 03:50:12 -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 68D961DC2D; Thu, 7 May 2020 12:49:12 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 85E5B1DBF2; Thu, 7 May 2020 12:49:04 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6BD322017FB; Thu, 7 May 2020 12:49:04 +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 67AA5200FBB; Thu, 7 May 2020 12:49:02 +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 C57E54031C; Thu, 7 May 2020 18:48:59 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: stable@dpdk.org, Jun Yang Date: Thu, 7 May 2020 16:16:44 +0530 Message-Id: <20200507104645.31990-9-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200507104645.31990-1-hemant.agrawal@nxp.com> References: <20200504124118.22877-1-hemant.agrawal@nxp.com> <20200507104645.31990-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v4 8/9] net/dpaa2: fix cong group id for multiple tcs 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: Jun Yang Flow id will not work when used with multiple traffic classes. The CGID shall be provided in the INDEX field. Fixes: 13b856ac02a8 ("net/dpaa2: support taildrop on frame count basis") Cc: stable@dpdk.org Signed-off-by: Jun Yang --- 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 fd766a2184..1bab3b064c 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -676,7 +676,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, DPNI_CP_CONGESTION_GROUP, DPNI_QUEUE_RX, dpaa2_q->tc_index, - flow_id, &taildrop); + dpaa2_q->cgid, &taildrop); } else { /*enabling per rx queue congestion control */ taildrop.threshold = CONG_THRESHOLD_RX_BYTES_Q; @@ -703,7 +703,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, ret = dpni_set_taildrop(dpni, CMD_PRI_LOW, priv->token, DPNI_CP_CONGESTION_GROUP, DPNI_QUEUE_RX, dpaa2_q->tc_index, - flow_id, &taildrop); + dpaa2_q->cgid, &taildrop); } else { ret = dpni_set_taildrop(dpni, CMD_PRI_LOW, priv->token, DPNI_CP_QUEUE, DPNI_QUEUE_RX,