ethdev: Clarify usage of TM node parent update API function
PATCH 1/1 ethdev: Clarify usage of TM node parent update API function
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.
--- lib/librte_ethdev/rte_tm.h | 4 ++++ 1 file changed, 4 insertions(+)
lib/librte_ethdev/rte_tm.h +4 -0
@@ -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()
Signature · 1 line
2.6.4
Cristian, review please?
10/07/2018 17:33, Ben Shelton:
Quoted 5 lines
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 <[email protected]>
[...]
Quoted 10 lines
/**
* 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 therte_tm_hierarchy_commit()
Dumitrescu, Cristian
Acked-byQuoted 18 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Tuesday, July 31, 2018 4:06 PM
To: Dumitrescu, Cristian <[email protected]>
Cc: [email protected]; Shelton, Benjamin H <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ethdev: Clarify usage of TM node parent update API functionCristian, review please?
10/07/2018 17:33, Ben Shelton:
Quoted 5 lines
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 <[email protected]>
Quoted 16 lines
[...]
Quoted 4 lines
/**
* Traffic manager node parent update
*
+ * This function may be used to move a node and its children to adifferent
Quoted 1 line
+ * parent. Additionally, if the new parent is the same as the current
parent,
Quoted 5 lines
+ * 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 therte_tm_hierarchy_commit()
Thomas Monjalon
Applied31/07/2018 17:09, Dumitrescu, Cristian:
Quoted 17 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 16 lines
Cristian, review please?
10/07/2018 17:33, Ben Shelton:
Quoted 5 lines
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 <[email protected]>[...]
Quoted 4 lines
/**
* Traffic manager node parent update
*
+ * This function may be used to move a node and its children to adifferent
Quoted 1 line
+ * parent. Additionally, if the new parent is the same as the current
Quoted 8 lines
Quoted 6 lines
parent,
Quoted 5 lines
+ * 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 therte_tm_hierarchy_commit()
Applied, thanks