Commit 715d449a965b ("net/ice: enhance Tx scheduler hierarchy support")
disabled strict priority on all levels however it will work on all
levels except for the root level. This commit re-enables configurability
of priority on non-root levels.

Fixes: 715d449a965b ("net/ice: enhance Tx scheduler hierarchy support")
Cc: [email protected]

Signed-off-by: Ciara Loftus <[email protected]>
---
 drivers/net/intel/ice/ice_tm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/intel/ice/ice_tm.c b/drivers/net/intel/ice/ice_tm.c
index db895613cc..ff53f2acfd 100644
--- a/drivers/net/intel/ice/ice_tm.c
+++ b/drivers/net/intel/ice/ice_tm.c
@@ -522,7 +522,8 @@ ice_tm_node_add(struct rte_eth_dev *dev, uint32_t node_id,
        tm_node->parent->children[tm_node->parent->reference_count++] = tm_node;
        tm_node->params = *params;
 
-       if (tm_node->priority != 0)
+       /* Priority cannot be configured for the root level */
+       if (tm_node->priority != 0 && level_id == 0)
                PMD_DRV_LOG(WARNING, "priority != 0 not supported in level %d", 
level_id);
 
        if (tm_node->weight != 1 && level_id == 0)
-- 
2.43.0

Reply via email to