From patchwork Tue Jul 10 15:33:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Shelton X-Patchwork-Id: 42719 X-Patchwork-Delegate: cristian.dumitrescu@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CBD5C1B43D; Tue, 10 Jul 2018 17:33:21 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 9B5751B3BA for ; Tue, 10 Jul 2018 17:33:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2018 08:33:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,335,1526367600"; d="scan'208";a="53333728" Received: from txasoft-yocto.an.intel.com ([10.123.72.192]) by fmsmga007.fm.intel.com with ESMTP; 10 Jul 2018 08:33:14 -0700 From: Ben Shelton To: Cristian Dumitrescu , Thomas Monjalon Cc: dev@dpdk.org, Ben Shelton Date: Tue, 10 Jul 2018 10:33:01 -0500 Message-Id: <20180710153301.546-1-benjamin.h.shelton@intel.com> X-Mailer: git-send-email 2.13.6 Subject: [dpdk-dev] [PATCH] ethdev: Clarify usage of TM node parent update API function 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" The node parent update API function may be used to update the priority/weight of an existing node. Update the documentation to indicate that this use case is supported. Signed-off-by: Ben Shelton Acked-by: Cristian Dumitrescu --- lib/librte_ethdev/rte_tm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_ethdev/rte_tm.h b/lib/librte_ethdev/rte_tm.h index 7255403..955f02f 100644 --- a/lib/librte_ethdev/rte_tm.h +++ b/lib/librte_ethdev/rte_tm.h @@ -1569,6 +1569,10 @@ rte_tm_hierarchy_commit(uint16_t port_id, /** * Traffic manager node parent update * + * This function may be used to move a node and its children to a different + * parent. Additionally, if the new parent is the same as the current parent, + * this function will update the priority/weight of an existing node. + * * Restriction for root node: its parent cannot be changed. * * This function can only be called after the rte_tm_hierarchy_commit()