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 F1CBE44048; Fri, 17 May 2024 09:45:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 404F3402E5; Fri, 17 May 2024 09:45:01 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 01CC1402EC for ; Fri, 17 May 2024 09:44:59 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44GLTc5t006304 for ; Fri, 17 May 2024 00:44:59 -0700 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=wDWh1O/YdizHciJvCWb4H8CCR8ZF4jR5rjxSbDIMf5s=; b=I0p 7pC8uoBh9oUs0NFwgFrHySNL+sEyPAHo2N102SpLBAthYLMZuyiCJO3kRFwZZY8t 9234ZgOHSzugPuKd710YwPyeAlf/SVIyTJlyvcqVW225JUefnAlz9PaWxpObTkna B1p2Ucc3ErshwFe1AEeAj67D5RhvTV5cro+JpbeROZxGMfgpkQ+6ZLw8+ycDO2zA nNW0eoq+OwqFzrzbMgwF1B0eGRWivd82PrcEdqGEAnDF0/TkFXwZ8YZZu/zjajM1 rbzy+0VmiK5VD1VI5zV2554jr7+TVbvu03MdcsvjQLyOjNtMM7TniwsLTMeaVOZT BEfykpS2Y0sfR/w0tBQ== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3y579bcyhg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 17 May 2024 00:44:59 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 17 May 2024 00:44:58 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Fri, 17 May 2024 00:44:58 -0700 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 8E7E43F7059; Fri, 17 May 2024 00:44:55 -0700 (PDT) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: , Subject: [PATCH 02/10] net/cnxk: set VF default root schedule weight Date: Fri, 17 May 2024 13:14:40 +0530 Message-ID: <20240517074448.3146611-2-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240517074448.3146611-1-ndabilpuram@marvell.com> References: <20240517074448.3146611-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: LbcNjyNiPymZUsvwhpQOSQ_2D-RW4AZI X-Proofpoint-ORIG-GUID: LbcNjyNiPymZUsvwhpQOSQ_2D-RW4AZI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-16_07,2024-05-15_01,2023-05-22_02 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: Satha Rao To get better performance on LBK or VF interfaces, set the default root schedule weight to known tested value. Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c index 95a3d8aaf9..1bccebad9f 100644 --- a/drivers/net/cnxk/cnxk_ethdev.c +++ b/drivers/net/cnxk/cnxk_ethdev.c @@ -7,6 +7,8 @@ #define CNXK_NIX_CQ_INL_CLAMP_MAX (64UL * 1024UL) +#define NIX_TM_DFLT_RR_WT 71 + static inline uint64_t nix_get_rx_offload_capa(struct cnxk_eth_dev *dev) { @@ -1884,6 +1886,8 @@ cnxk_eth_dev_init(struct rte_eth_dev *eth_dev) nix->pci_dev = pci_dev; nix->hw_vlan_ins = true; nix->port_id = eth_dev->data->port_id; + /* For better performance set default VF root schedule weight */ + nix->root_sched_weight = NIX_TM_DFLT_RR_WT; if (roc_feature_nix_has_own_meta_aura()) nix->local_meta_aura_ena = true; rc = roc_nix_dev_init(nix); -- 2.25.1