Skip to contentSkip to conversation

ethdev: Clarify usage of TM node parent update API function

PATCH Applied Ben Shelton 3 participants 4 messages Jul 10, 2018 – Jul 31, 2018

lore
Share & tools
lore
#0 lore raw

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
index 7255403..955f02f 100644
@@ -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
#1 lore raw

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.

[...]

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 the rte_tm_hierarchy_commit()

#2 lore raw
Quoted 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 function

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.

Quoted 16 lines

[...]

Quoted 4 lines

/**
* Traffic manager node parent update
*
+ * This function may be used to move a node and its children to a

different

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 the rte_tm_hierarchy_commit()

#3 lore raw

31/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.

[...]

Quoted 4 lines

/**
* Traffic manager node parent update
*
+ * This function may be used to move a node and its children to a

different

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 the rte_tm_hierarchy_commit()

Applied, thanks