net/hns3: fix Rx/Tx queue numbers check
authorHuisong Li <lihuisong@huawei.com>
Sat, 15 May 2021 00:52:33 +0000 (08:52 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 18 May 2021 10:30:14 +0000 (12:30 +0200)
commit16c08f07ab673655db5fcae2043e2cb1f423c5b2
tree0271df3ff68145e85556838517231fd4e5d61632
parent2838aa76ba94e0dd7712e57fe6a32651f5690797
net/hns3: fix Rx/Tx queue numbers check

The Rx/Tx queue numbers should be greater than TC number, this patch adds
this check for PF before updating the mapping between TC and queue.

Fixes: a951c1ed3ab5 ("net/hns3: support different numbers of Rx and Tx queues")
Fixes: 76d794566d43 ("net/hns3: maximize queue number")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_dcb.c
drivers/net/hns3/hns3_ethdev_vf.c