From: Wenzhuo Lu Date: Wed, 26 Jul 2017 14:43:39 +0000 (+0800) Subject: net/i40e: fix TM hierarchy commit check X-Git-Tag: spdx-start~2321 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=41ab4ff5e5d9bb6c0ba43dce1eecbf62d322e19c;p=dpdk.git net/i40e: fix TM hierarchy commit check If there's no Traffic Management node added. Not necessary to check if TM is committed. Fixes: cac29c3c00a4 ("net/i40e: support committing TM hierarchy") Signed-off-by: Wenzhuo Lu Acked-by: Cristian Dumitrescu --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 9fcccdaaed..042bcc138f 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -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");