From: Wenzhuo Lu Date: Wed, 26 Jul 2017 14:54:13 +0000 (+0800) Subject: net/ixgbe: fix TM hierarchy commit check X-Git-Tag: spdx-start~2322 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ad3782f7fe28b99420e85db48af5b5e14f49a543;p=dpdk.git net/ixgbe: fix TM hierarchy commit check If there's no Traffic Management node added, not necessary to check if TM is committed. Fixes: 5713ade69776 ("net/ixgbe: support committing TM hierarchy") Signed-off-by: Wenzhuo Lu Acked-by: Cristian Dumitrescu --- diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 194058fb8e..e436dcafe7 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -2693,7 +2693,7 @@ skip_link_setup: ixgbe_l2_tunnel_conf(dev); ixgbe_filter_restore(dev); - if (!tm_conf->committed) + if (tm_conf->root && !tm_conf->committed) PMD_DRV_LOG(WARNING, "please call hierarchy_commit() " "before starting the port");