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 570FFA2F18 for ; Thu, 3 Oct 2019 16:59:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8FFA41C126; Thu, 3 Oct 2019 16:59:09 +0200 (CEST) Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by dpdk.org (Postfix) with ESMTP id 1E3E71C124 for ; Thu, 3 Oct 2019 16:59:08 +0200 (CEST) Received: by mail-io1-f67.google.com with SMTP id b136so6271520iof.3 for ; Thu, 03 Oct 2019 07:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1WUyCfKoDsUvW2IGGP4rFMKf2uJ+qi7MSy9i2LHux+I=; b=iIGZHEBuwlCd0NrfSEH9XvLeSvVo/FAunKOhjVVJCJXQ3YFR/R6Jg8NWPh76N2rKPf LZl4Gc5jhasMCKTKBrWmfuy0nW5dg2fd/EHVywLc04QeH4COLOQFp6egKlWgWDuM/mcB g76hcRb5vkfbIvFquz88UsjC1CJkdhTeUf6NI01WTMHUgoIgpkiODw3Gb/M8bgt+vVhy JKWZAtHn9EqlYvX/vje0TR6U2mnGY1ZRLuM+zWQ3xZPWdkeJ9bF3k0yAo/XNNX8ecqtv XxPudp+NaDK/VciBkUT3RfGUobPc7Vy9QP+EdKb9AXGdeO+iee0wGXQJ47ZA14mrbcvB /FrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1WUyCfKoDsUvW2IGGP4rFMKf2uJ+qi7MSy9i2LHux+I=; b=YpPR724PEfk5G6fzYVuxlRfwC1Sgq6tTHqIaT8IAlUp1FaYt4jI4Msy5eym07D2q6q yneeccK5bnoKN9vaU2AaoohD9H8pidck7W0/TaBIegtOD3UEF/8SQXMnTSHq0IwelPyt bNYVaGl6NsUihIk1DKFRJR7+DnkUlmEeRrv8Z+DM0WfsRHDO/rh1m/4TweMbbZ1S/f+g 6ZEkmeYl3scy9EsSHrdpfl6LkGA1ByYMrzCxqIX+fE0Fu/RGqzRxApnbJkv5Qir/u+2m XfLo27sLAG9QYoG7dDMGqwRHjt4wGlRuhvhdUN7yq827YFjDXxM1kRIe/HwyMJ90c5IW fXbA== X-Gm-Message-State: APjAAAVb3ikXVykFWjcfTjuVlKZ+MNBSsQHyCd+kK15VHs6+KTF4KmrC cnyG5xedpp8fQI2YbmT0JWcj59NmAypEJsxjummsiyTV02NzQg== X-Google-Smtp-Source: APXvYqxk92Sdtc+QVbfk9nkFNwV+oOJVyvwxQpacD8A55z7BeUtcR9bzYO18B0C068hSPadgybp4UsjUTsVEAamAJlg= X-Received: by 2002:a92:de42:: with SMTP id e2mr10222486ilr.271.1570114747201; Thu, 03 Oct 2019 07:59:07 -0700 (PDT) MIME-Version: 1.0 References: <20190830040443.6413-1-ndabilpuram@marvell.com> In-Reply-To: <20190830040443.6413-1-ndabilpuram@marvell.com> From: Jerin Jacob Date: Thu, 3 Oct 2019 20:28:56 +0530 Message-ID: To: Nithin Dabilpuram , Ferruh Yigit Cc: Jerin Jacob , Kiran Kumar K , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [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" On Fri, Aug 30, 2019 at 9:35 AM Nithin Dabilpuram wrote: > > 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 Applied to dpdk-next-net-mrvl/master. Thanks > --- > 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 >