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 17504A0513; Fri, 8 Apr 2022 08:00:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1FFF042871; Fri, 8 Apr 2022 07:59:28 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 4DC854285D for ; Fri, 8 Apr 2022 07:59:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649397565; x=1680933565; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=c2IByEZ7CH+HJXpPAJicjJWm77wdq/E34CTPCWi4S8A=; b=ISkTN4oH7xI9eFr1x4Jm1POK5X1MoBIJBs8W1Rde+VzJ3y293alSihpz jsqgTCtDG/Y8ZJpA2VVfk3fVsjagxdhslsiFMsHthpENG9kpc/9q25Z7v AnqXsz5lx7uObSnmnQEd+dYYEUFsfe9HGC+L79D1jRO25gJjVfiRfycwx Jz9w/RDw9kkHwc8LN4l3xr4CK+86A0arnZ4d2lwQ5+N6KxDCDKHw40FZ5 5ECfw35zzcsmjPptP7/48C0hL1zAXGMXardzWp8Gp71c17bq2sOJSanaA DRmqZzU7dFMZUuCzVe7PGaftX9kvdHlEg6gJqPxtvaGYCupa9jAVM3P9t A==; X-IronPort-AV: E=McAfee;i="6400,9594,10310"; a="241450493" X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="241450493" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 22:59:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="642773624" Received: from npg-wuwenjun-dpdk-01.sh.intel.com ([10.67.110.181]) by FMSMGA003.fm.intel.com with ESMTP; 07 Apr 2022 22:59:23 -0700 From: Wenjun Wu To: dev@dpdk.org, qi.z.zhang@intel.com, qiming.yang@intel.com Subject: [PATCH v6 08/10] net/ice: support queue group priority configuration Date: Fri, 8 Apr 2022 13:38:13 +0800 Message-Id: <20220408053815.850191-9-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220408053815.850191-1-wenjun1.wu@intel.com> References: <20220329014813.1092054-1-wenjun1.wu@intel.com> <20220408053815.850191-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 4d7bb9102c..17f369994b 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