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