From patchwork Thu Apr 28 03:30:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenjun Wu X-Patchwork-Id: 110407 X-Patchwork-Delegate: qi.z.zhang@intel.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 B4CC4A0503; Thu, 28 Apr 2022 05:53:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CDCC642821; Thu, 28 Apr 2022 05:52:58 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id F25D8427F7 for ; Thu, 28 Apr 2022 05:52:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651117973; x=1682653973; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=hI498RhFk32E++GG9QEjfIi1EDurQQi+TtHssRWjSVk=; b=F+B10BZRo7Ipjw9OhMfiTFKFl9c53ksk6I7Rj4ZjHpIFDi2Ceds34krP u2mVieyH70M7WalrB9G6vZnwdHoGnDbToWUcV9py05NhEhQRjISZM/JFk rwDfOx4wFRIBb8YHmQAHTygOuRfmRPAECtNLSkfc9T1eg51WyYYifgbZE UvT6lgr4WY796Z844WAHVvbkvDX8zePrlkbZcMxuDKnZ0ETXGMlfzChN0 vz4h3wlKgeKQ/HWvPZsrgD/z1rXWIkWZxFcobql2RESkBJ2gZnK7RIbMO THMgBMYi8YS90zGSGquLbfOHfl2t7FD7vwHzThHagKb/YQd/z1gYSC6Px g==; X-IronPort-AV: E=McAfee;i="6400,9594,10330"; a="253531286" X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="253531286" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2022 20:52:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="514044838" Received: from npg-wuwenjun-dpdk-01.sh.intel.com ([10.67.110.181]) by orsmga003.jf.intel.com with ESMTP; 27 Apr 2022 20:52:50 -0700 From: Wenjun Wu To: dev@dpdk.org, qiming.yang@intel.com, qi.z.zhang@intel.com Subject: [PATCH v9 8/9] net/ice: support queue group priority configuration Date: Thu, 28 Apr 2022 11:30:33 +0800 Message-Id: <20220428033034.3490183-9-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220428033034.3490183-1-wenjun1.wu@intel.com> References: <20220329014813.1092054-1-wenjun1.wu@intel.com> <20220428033034.3490183-1-wenjun1.wu@intel.com> MIME-Version: 1.0 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/ice/ice_tm.c b/drivers/net/ice/ice_tm.c index 4d7bb9102c..f604523ead 100644 --- a/drivers/net/ice/ice_tm.c +++ b/drivers/net/ice/ice_tm.c @@ -764,6 +764,15 @@ static int ice_hierarchy_commit(struct rte_eth_dev *dev, goto fail_clear; } } + priority = 7 - tm_node->priority; + ret_val = ice_sched_cfg_sibl_node_prio_lock(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;