From patchwork Mon Jan 16 09:39:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 122091 X-Patchwork-Delegate: jerinj@marvell.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 1F134423EE; Mon, 16 Jan 2023 10:41:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EEC2142D3B; Mon, 16 Jan 2023 10:41:11 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id B2C6B42D36 for ; Mon, 16 Jan 2023 10:41:10 +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 30G63aUh000605 for ; Mon, 16 Jan 2023 01:41:09 -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=l5F2TzQGxhs73eFvqMInFnsvJsAm9mMINxoZfKxs7gI=; b=JSXIjGliuxQ2mZzyRjJd8fu3BvHY++ls6zlDbz0XHh4WJcsXdyRpRpBxC3uhomJU9cBo d9Y6fFLmn14jKj1Ker6V5QCLufOB6NTWwWBgO87v3CMnCNUAipjp0CFS/Wd+8muNfW2d D9DFxUVbOI5EcSjwOmJ5bkLAiJJy1tY79dA6kCIuTyqdMwkHY85uC7iLOT2aoeaYQqMd i9PFxgaHoscYN03mV3twARoNwbhh6LZFa8WFo5ddkp5muHYIrOm6lHQK8yHbG8qqVzEi Ohs8Rvllpv9xGNOKyCkQCCfZlwsMTTonFkr9kPT/EGbSJkDI7fiuu9QUms5odS5LfPvo Uw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3n3tmvkukj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 16 Jan 2023 01:41:09 -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; Mon, 16 Jan 2023 01:41:08 -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; Mon, 16 Jan 2023 01:41:08 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id EED463F7041; Mon, 16 Jan 2023 01:41:05 -0800 (PST) From: Nithin Dabilpuram To: , Nithin Dabilpuram , "Kiran Kumar K" , Sunil Kumar Kori , Satha Rao CC: , Rakesh Kudurumalla Subject: [PATCH 8/9] net/cnxk: make flow control op for SDP as no-op Date: Mon, 16 Jan 2023 15:09:53 +0530 Message-ID: <20230116093954.172938-8-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116093954.172938-1-ndabilpuram@marvell.com> References: <20230116093954.172938-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: GTxxRDahFW17atMUsR846pu_XGj4MCP2 X-Proofpoint-GUID: GTxxRDahFW17atMUsR846pu_XGj4MCP2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-16_08,2023-01-13_02,2022-06-22_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: Rakesh Kudurumalla no action is taken when application calls rte_eth_dev_flow_ctrl_get(), for sdp port which is inline with rte_eth_dev_flow_ctrl_set() for sdp port Signed-off-by: Rakesh Kudurumalla --- drivers/net/cnxk/cnxk_ethdev_ops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c index 8f7287161b..a6ab493626 100644 --- a/drivers/net/cnxk/cnxk_ethdev_ops.c +++ b/drivers/net/cnxk/cnxk_ethdev_ops.c @@ -212,6 +212,9 @@ cnxk_nix_flow_ctrl_get(struct rte_eth_dev *eth_dev, struct roc_nix *nix = &dev->nix; int mode; + if (roc_nix_is_sdp(nix)) + return 0; + mode = roc_nix_fc_mode_get(nix); if (mode < 0) return mode;