]> git.droids-corp.org - dpdk.git/commitdiff
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 194058fb8e7284d1f0abac9a931e906d2ba3e118..e436dcafe7c70b47341b193056d008ef78eb491d 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");