net/hns3: fix TM info dump
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 14 Apr 2022 13:00:55 +0000 (21:00 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Thu, 5 May 2022 12:57:10 +0000 (14:57 +0200)
commitc36f555bf4bc3f11de2dd84da252ee10ad6572ec
tree584d56d4a1307f09d0b6c9df9d25f04a2dde9bc2
parentda2c1aa41ed1b72b888b7defaf2e274607e0e555
net/hns3: fix TM info dump

Shouldn't dump TM info when TM is not supported by the NIC.
This patch fixed it.

Fixes: e4cfe6bb9114 ("net/hns3: dump TM configuration info")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev_dump.c