net/i40e: fix TM hierarchy commit check
If there's no Traffic Management node added. Not
necessary to check if TM is committed.
Fixes: cac29c3c00
("net/i40e: support committing TM hierarchy")
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
parent
ad3782f7fe
commit
41ab4ff5e5
@ -2033,7 +2033,7 @@ i40e_dev_start(struct rte_eth_dev *dev)
|
||||
|
||||
i40e_filter_restore(pf);
|
||||
|
||||
if (!pf->tm_conf.committed)
|
||||
if (pf->tm_conf.root && !pf->tm_conf.committed)
|
||||
PMD_DRV_LOG(WARNING,
|
||||
"please call hierarchy_commit() "
|
||||
"before starting the port");
|
||||
|
Loading…
Reference in New Issue
Block a user