From patchwork Mon May 4 12:41:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 186115 Delivered-To: patch@linaro.org Received: by 2002:a92:8d81:0:0:0:0:0 with SMTP id w1csp84729ill; Mon, 4 May 2020 05:44:40 -0700 (PDT) X-Google-Smtp-Source: APiQypKLBCI6Krb4CFzyI2Cq4dDsv2cUUnWMn7E9aal6BtW+zP6MRrpA8zAOkH+AkXyABy6UsF/k X-Received: by 2002:a17:906:72c8:: with SMTP id m8mr15213309ejl.318.1588596279936; Mon, 04 May 2020 05:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588596279; cv=none; d=google.com; s=arc-20160816; b=GgAUeXyGYWAx8ael9dae3XDi2c8cDOYUDKH+DvNPY9WKykwAEBZyssv+RA/EPPW1zW E8kTagghIT3f283DgLB6AXfqIj5O53WPwpbhSawSNJqCccZiWMDc7XUNWWXT6vHcPxV+ bUPUM4+wzyBMdNCl6Wwmh+v4G7vw1U3b9EiYOIW/pcpQHa93+nF+ue9uXT3YUAvnhPgo fbadp0KHUoRY+92bMXL/P68VJmLuq/JrEHna8Ikg1clip8zf6FHTyni4alwmy7+wH4FC 1jdQfdy/xP+yFnd9PIKOGqafDhWfcqONi7CfW/x+V39l11M6Kere/eqjFcdjiEYAjHTh z+WA== 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=U++5ECuh8YLw5XEm7sPB+hhGNFfi0LHGrk7wvIxsYQg=; b=XJhigHxQyzyx2pMNiihGdUlhr2yiEPebXjUg+obOx+8pPfe6P91s9EEfYzQ7h481EG rXUCufDR8HJwn/rCWiOFikp9r6HvRzmM5SBXzRLSEDsiFtYNxLaE/Z2UojK+q122g+ff M1EQk5u5bcLLAs7pkFm6EE3asYvn8yfZhXQAo0c9SOq124pqMIZkMTIsOfen5GtY2gCK SoPUwi2/XYSwLRVPnLGTHVA5j8If1Y1srremebSTpn3b3YKAt7yxCIXUrMLtPwaY8z7y 64ilMPhl+dYD/fbWgaao/jh+Fm/gXYmnZWRj1Oz5SoamDw2sZCSrZfHm6z8qQ3jknm4D qEFg== 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 x17si7330900ejn.21.2020.05.04.05.44.39; Mon, 04 May 2020 05:44:39 -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 D43B51D51A; Mon, 4 May 2020 14:43:35 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 5BD2C1D172 for ; Mon, 4 May 2020 14:43:29 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4110B200373; Mon, 4 May 2020 14:43:29 +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 94B09200393; Mon, 4 May 2020 14:43:27 +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 DB70C40314; Mon, 4 May 2020 20:43:24 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: Jun Yang Date: Mon, 4 May 2020 18:11:18 +0530 Message-Id: <20200504124118.22877-9-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200504124118.22877-1-hemant.agrawal@nxp.com> References: <20200306095742.18080-1-hemant.agrawal@nxp.com> <20200504124118.22877-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v3 8/8] net/dpaa2: use 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 may not work when used with multipel tcs. The CGID will be provided in the INDEX field. 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,