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 CA726A0613 for ; Fri, 30 Aug 2019 06:05:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B41A61E53A; Fri, 30 Aug 2019 06:05:04 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 46AF81DEFC for ; Fri, 30 Aug 2019 06:05:03 +0200 (CEST) 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 x7U40uPc017050 for ; Thu, 29 Aug 2019 21:05:02 -0700 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=fUn0yYaOh+SZMh9M3SjFpJx4hFcQBDewAJExOscSGiQ=; b=hx6D15mHgSNCeSjvf8M8p9qX+MHUyIYt6SOadA7uF2csFBbKzlLFRWbQEPHgsCYXIjyY xOnT/kNa/L5pjN8ssHlVdM0hUp6jMhtWoS/yVeSIkcwghJEDnvFfcGAe/mkFzOtZUW7M vbjLhzOYyWM4ul1oug311ECrypAbYDlKiV0wrTpe1UJ7sQgoUA9tKGrYqUmQTPHVj8+A sJX4mMvLx1b05yykuCVbbsbHjsd8RkLsYp/ueZpBgx9BZNl9XswlRZyuDWhrl98kKXKB bC/RldqtzdohTu0hTHT77FdEeVDqXRkNLUxn2BLw8HmU8VmaT/puJl4ri90/E0FNvt/P kg== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2uk4rky2tf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 29 Aug 2019 21:05:02 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 29 Aug 2019 21:05:00 -0700 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.1367.3 via Frontend Transport; Thu, 29 Aug 2019 21:05:00 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 8506B3F703F; Thu, 29 Aug 2019 21:04:58 -0700 (PDT) From: Nithin Dabilpuram To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: Date: Fri, 30 Aug 2019 09:34:43 +0530 Message-ID: <20190830040443.6413-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-08-30_01:2019-08-29,2019-08-30 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: allow vfs to enable back pressure 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" Allow VFs to enable backpressure for performance reasons. The backpressure control is with kernel AF driver that will enable backpressure even if one PF/VF requests it and disable it only after all the PFs/VFs request for disable. Signed-off-by: Nithin Dabilpuram --- drivers/net/octeontx2/otx2_flow_ctrl.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/net/octeontx2/otx2_flow_ctrl.c b/drivers/net/octeontx2/otx2_flow_ctrl.c index 419ad97..1d00e46 100644 --- a/drivers/net/octeontx2/otx2_flow_ctrl.c +++ b/drivers/net/octeontx2/otx2_flow_ctrl.c @@ -14,9 +14,6 @@ otx2_nix_rxchan_bpid_cfg(struct rte_eth_dev *eth_dev, bool enb) struct nix_bp_cfg_rsp *rsp; int rc; - if (otx2_dev_is_vf(dev)) - return 0; - if (enb) { req = otx2_mbox_alloc_msg_nix_bp_enable(mbox); req->chan_base = 0; @@ -53,9 +50,6 @@ otx2_nix_flow_ctrl_get(struct rte_eth_dev *eth_dev, struct otx2_mbox *mbox = dev->mbox; int rc; - if (otx2_dev_is_vf(dev)) - return -ENOTSUP; - req = otx2_mbox_alloc_msg_cgx_cfg_pause_frm(mbox); req->set = 0; @@ -143,9 +137,6 @@ otx2_nix_flow_ctrl_set(struct rte_eth_dev *eth_dev, uint8_t tx_pause, rx_pause; int rc = 0; - if (otx2_dev_is_vf(dev)) - return -ENOTSUP; - if (fc_conf->high_water || fc_conf->low_water || fc_conf->pause_time || fc_conf->mac_ctrl_frame_fwd || fc_conf->autoneg) { otx2_info("Flowctrl parameter is not supported"); @@ -198,9 +189,6 @@ otx2_nix_update_flow_ctrl_mode(struct rte_eth_dev *eth_dev) struct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev); struct rte_eth_fc_conf fc_conf; - if (otx2_dev_is_vf(dev)) - return 0; - memset(&fc_conf, 0, sizeof(struct rte_eth_fc_conf)); /* Both Rx & Tx flow ctrl get enabled(RTE_FC_FULL) in HW * by AF driver, update those info in PMD structure. -- 2.8.4