[dpdk-dev,v2,7/7] net/i40e: fix wrong parent when adding TM node
Checks
Commit Message
Queue's parent is TC not port. It's wrong to always set
the parent to root.
Fixes: e0ff4d304ccf ("net/ixgbe: support adding TM node")
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
---
drivers/net/i40e/i40e_tm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -621,7 +621,7 @@ static int i40e_hierarchy_commit(struct rte_eth_dev *dev,
tm_node->priority = priority;
tm_node->weight = weight;
tm_node->reference_count = 0;
- tm_node->parent = pf->tm_conf.root;
+ tm_node->parent = parent_node;
tm_node->shaper_profile = shaper_profile;
(void)rte_memcpy(&tm_node->params, params,
sizeof(struct rte_tm_node_params));