The committed flag for tx schedular configuration is not used in PF only mode, remove the redundent code.
Signed-off-by: Qi Zhang <qi.z.zh...@intel.com> --- drivers/net/ice/ice_tm.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/net/ice/ice_tm.c b/drivers/net/ice/ice_tm.c index f5ea47ae83..9e2f981fa3 100644 --- a/drivers/net/ice/ice_tm.c +++ b/drivers/net/ice/ice_tm.c @@ -390,13 +390,6 @@ ice_tm_node_add(struct rte_eth_dev *dev, uint32_t node_id, if (!params || !error) return -EINVAL; - /* if already committed */ - if (pf->tm_conf.committed) { - error->type = RTE_TM_ERROR_TYPE_UNSPECIFIED; - error->message = "already committed"; - return -EINVAL; - } - ret = ice_node_param_check(pf, node_id, priority, weight, params, error); if (ret) @@ -579,13 +572,6 @@ ice_tm_node_delete(struct rte_eth_dev *dev, uint32_t node_id, if (!error) return -EINVAL; - /* if already committed */ - if (pf->tm_conf.committed) { - error->type = RTE_TM_ERROR_TYPE_UNSPECIFIED; - error->message = "already committed"; - return -EINVAL; - } - if (node_id == RTE_TM_NODE_ID_NULL) { error->type = RTE_TM_ERROR_TYPE_NODE_ID; error->message = "invalid node id"; -- 2.31.1