net/ixgbe: fix TM hierarchy commit check
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Wed, 26 Jul 2017 14:54:13 +0000 (22:54 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 31 Jul 2017 17:16:23 +0000 (19:16 +0200)
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 <wenzhuo.lu@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c

index 194058f..e436dca 100644 (file)
@@ -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");