net/hns3: fix data type to store queue number
authorHuisong Li <lihuisong@huawei.com>
Thu, 29 Oct 2020 12:51:54 +0000 (20:51 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:06 +0000 (23:35 +0100)
commit708ecc07d23edff628008669401cfaf37a503ce8
tree1ef533379ab3e5f175f6a4c89a680b9f569ef023
parent8a2d3bd64c69817e772717d98836eb15fe8b0ff8
net/hns3: fix data type to store queue number

Currently, u8 type variable is used to control to release fake queues in
hns3_fake_rx/tx_queue_config function. Although there is no case in
which more than 256 fake queues are created in hns3 network engine, it
is unreasonable to compare u8 variable with u16 variable.

Fixes: a951c1ed3ab5 ("net/hns3: support different numbers of Rx and Tx queues")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_rxtx.c