net/i40e: fix TM node parameter checking
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Tue, 17 Oct 2017 05:50:34 +0000 (13:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:00 +0000 (02:33 +0200)
commit1be6985827ff4f189e827f19de5e26d4f5ca8a73
tree7852e58c3c4457d3f7c05517f1fd983caf714eb4
parente589960c0bd30200b783885f5ca3dc09de46a2c4
net/i40e: fix TM node parameter checking

Only queue nodes should be taken as leaf nodes, all
the other nodes are non-leaf nodes.
Correct it when checking the parameters of the TM nodes.

Fixes: 03a249b62bbd ("net/i40e: support adding TM node")
Cc: stable@dpdk.org
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
drivers/net/i40e/i40e_tm.c