From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4714741DC3; Fri, 3 Mar 2023 09:11:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CCE6642D1A; Fri, 3 Mar 2023 09:11:17 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 3FE6C42D2D for ; Fri, 3 Mar 2023 09:11:14 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32386g9v003396 for ; Fri, 3 Mar 2023 00:11:13 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Q6xfu814XHLwWQon6Ta+YHQ6j1NE9GBKDi/JUvAE7Yw=; b=k0bEqcH7x3kXlXpldmqFZLyRaFKR46n6rjJfwpxFgtrhiEjWo2UhxwI/CtdZt1CjgStG B2Jlwf54gaqkX/fvhxpzF1C1Hb3OrceeP9fhkISrlIvcdC0D22PZi9bcXzC3JaJeI2dp HCpTL4VyhgHJrKSofMe7gLwfLSO+mZj0KAr1itJucSOm/f5e+mUDnnt3gtWyJXZmSb4C +cpxTLhRxoBZKHHSzGQx3nXjfYTILPlVrr7vxHuExYmEpb9K/7ASFdjs5SDzB9Yl9OhV GVHkue5Lw6ZKy6UOqIpztjC5dKsgMYEoqpN52KBJh4T3dBBiYRSVGVMq0G3kNo2JUHh+ LA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3p2vg53duf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 03 Mar 2023 00:11:13 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Mar 2023 00:11:11 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Fri, 3 Mar 2023 00:11:11 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 500235B694D; Fri, 3 Mar 2023 00:11:09 -0800 (PST) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , , Rahul Bhansali Subject: [PATCH 09/15] net/cnxk: don't allow PFC configuration on started port Date: Fri, 3 Mar 2023 13:40:07 +0530 Message-ID: <20230303081013.589868-9-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230303081013.589868-1-ndabilpuram@marvell.com> References: <20230303081013.589868-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: FpopShZQdHVdgOMdRZft9wrXyA7LxBm4 X-Proofpoint-GUID: FpopShZQdHVdgOMdRZft9wrXyA7LxBm4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-03_01,2023-03-02_02,2023-02-09_01 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 From: Rahul Bhansali Avoid priority flow control configuration when port is started. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cnxk_ethdev_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c index 5df7927d7b..068b7c3502 100644 --- a/drivers/net/cnxk/cnxk_ethdev_ops.c +++ b/drivers/net/cnxk/cnxk_ethdev_ops.c @@ -1121,8 +1121,8 @@ nix_priority_flow_ctrl_rq_conf(struct rte_eth_dev *eth_dev, uint16_t qid, struct roc_nix_cq *cq; int rc, i; - if (roc_model_is_cn96_ax() && data->dev_started) { - /* On Ax, CQ should be in disabled state + if (data->dev_started) { + /* RQ should be in disabled state * while setting flow control configuration. */ plt_info("Stop the port=%d for setting flow control", -- 2.25.1