From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D9C4DA0524; Thu, 30 Jan 2020 17:02:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AF61E1C029; Thu, 30 Jan 2020 17:02:29 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 2F4DA1C022 for ; Thu, 30 Jan 2020 17:02:28 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00UG0U0M029853 for ; Thu, 30 Jan 2020 08:02:27 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=Xg4urCCdUiuQdCPWtAZI8YjXKcbNfMhSef2F3wUCXZc=; b=H9AzM4ADKbKBz9clCwdNwXRbTzokTYCP6JKHESA6SQ5lytY/FAhfCVDrtNKljOxNzHdA BTHEhYZN46DfiQ0agFSLVx02A6t1p2D3Vz5vPwPi4EC7ydRecW/uvzPdKXQEEyGYogku leQyRuO1F26rc06M6G/1cO3Phs/BUX3MAdwFxlwVfZnkMp7/Yp6vy621f0KtfqWSGzAI 7OuqTtEtii6bAVHu1+lM8IxreJlxWx8yBPcWoBzjZVPTbYyQPWFhoCMHE+h5pH886CO1 mIeJ6O4NkIBYBc8KQWXiut7A+FF3d3dNNgID5t+tjBW0PRanvLfNm+Fv3t6xI9qDO+u3 sw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2xrp2texs8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 30 Jan 2020 08:02:27 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Jan 2020 08:02:25 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 30 Jan 2020 08:02:24 -0800 Received: from localhost.localdomain (unknown [10.28.34.15]) by maili.marvell.com (Postfix) with ESMTP id CB92F3F704C; Thu, 30 Jan 2020 08:02:23 -0800 (PST) From: To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: Date: Thu, 30 Jan 2020 21:31:51 +0530 Message-ID: <20200130160151.18000-1-kirankumark@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-30_05:2020-01-28, 2020-01-30 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: enable full flow control for HIGIG 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: Kiran Kumar K Due to following errata (NIX-35687) 2019-03-20 A0 CatA Link credit deadlock, We disabled Tx flow control. Add check to enable the full flow control in HIGIG mode. Signed-off-by: Kiran Kumar K --- drivers/net/octeontx2/otx2_flow_ctrl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/octeontx2/otx2_flow_ctrl.c b/drivers/net/octeontx2/otx2_flow_ctrl.c index c6d7b1971..1c6929e76 100644 --- a/drivers/net/octeontx2/otx2_flow_ctrl.c +++ b/drivers/net/octeontx2/otx2_flow_ctrl.c @@ -213,6 +213,7 @@ otx2_nix_update_flow_ctrl_mode(struct rte_eth_dev *eth_dev) /* To avoid Link credit deadlock on Ax, disable Tx FC if it's enabled */ if (otx2_dev_is_Ax(dev) && + (dev->npc_flow.switch_header_type != OTX2_PRIV_FLAGS_HIGIG) && (fc_conf.mode == RTE_FC_FULL || fc_conf.mode == RTE_FC_RX_PAUSE)) { fc_conf.mode = (fc_conf.mode == RTE_FC_FULL || -- 2.17.1