net/hns3: fix traffic management support check
authorMin Hu (Connor) <humin29@huawei.com>
Tue, 20 Apr 2021 08:59:49 +0000 (16:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 20 Apr 2021 10:55:28 +0000 (12:55 +0200)
commit281b62f7768f7cea73f77fa433ef1b0d9b1a0d2c
tree46c660fddabf379d32bc987957b61ec2b3409b5c
parent55d5ad6bb80f209750dc6313bee617410fcd5946
net/hns3: fix traffic management support check

params->leaf.cman has enum type which is not isomorphic with boolean
type, however it is used as a boolean expression.

This patch fixed it.

Fixes: c09c7847d892 ("net/hns3: support traffic management")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_tm.c