[1/6] net/ice: remove redundent code
Checks
Commit Message
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.zhang@intel.com>
---
drivers/net/ice/ice_tm.c | 14 --------------
1 file changed, 14 deletions(-)
@@ -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";