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 3813BA0505; Tue, 29 Mar 2022 07:19:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7426E428DD; Tue, 29 Mar 2022 07:18:49 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id CE4FE428D2 for ; Tue, 29 Mar 2022 07:18:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648531128; x=1680067128; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=up8jSAatwhrFTKxirYM+Dy3Jm8YbAmX4+iAsbgDfNvI=; b=n7PwdBv/ekuPq/XlocLJsWtxrtFfeSMHCQB/HpbqXmwsvnwe9OIrVG34 owoHOwnquejdWEz+RkCZFLQMPHvwhESIlPnx9hgEmfCvJjIh/jV4ytvtv EivL6DC1EmClOAiKus2KPuAfafxEFwi8SZAm4iWfi/2SBIDXVGxuOgFMq C+Yv9Cmfk3yTZ8U+29KV88OxLx7LVU8isf2QrLF7MKVfhfgJiHMes8Z0A Kkincg97eMExiD5uknCTRKN0HIuvaMwSsS4BFD/ATRe+UACCHK8jExhTL d2Mbi06DqGyNk+qqmeCTAhynv3kSpPdSiExzggz+kO0NWsX3dc/em9hmv A==; X-IronPort-AV: E=McAfee;i="6200,9189,10300"; a="345600240" X-IronPort-AV: E=Sophos;i="5.90,219,1643702400"; d="scan'208";a="345600240" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 22:18:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,219,1643702400"; d="scan'208";a="521294574" Received: from npg-wuwenjun-dpdk-01.sh.intel.com ([10.67.110.181]) by orsmga006.jf.intel.com with ESMTP; 28 Mar 2022 22:18:46 -0700 From: Wenjun Wu To: dev@dpdk.org, qiming.yang@intel.com, qi.z.zhang@intel.com Subject: [PATCH v4 8/9] net/ice: support queue group priority configuration Date: Tue, 29 Mar 2022 12:56:11 +0800 Message-Id: <20220329045612.1262025-9-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220329045612.1262025-1-wenjun1.wu@intel.com> References: <20220329030657.1121305-1-wenjun1.wu@intel.com> <20220329045612.1262025-1-wenjun1.wu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This patch adds queue group priority configuration support. Signed-off-by: Wenjun Wu --- drivers/net/ice/ice_tm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/ice/ice_tm.c b/drivers/net/ice/ice_tm.c index 070cb7db41..8a71bfa599 100644 --- a/drivers/net/ice/ice_tm.c +++ b/drivers/net/ice/ice_tm.c @@ -764,6 +764,14 @@ static int ice_hierarchy_commit(struct rte_eth_dev *dev, goto fail_clear; } } + priority = 7 - tm_node->priority; + ret_val = ice_cfg_node_priority(hw->port_info, qgroup_sched_node, priority); + if (ret_val) { + error->type = RTE_TM_ERROR_TYPE_NODE_PRIORITY; + PMD_DRV_LOG(ERR, "configure queue group %u priority failed", + tm_node->priority); + goto fail_clear; + } idx_qg++; if (idx_qg >= nb_qg) { idx_qg = 0; -- 2.25.1