OSDN Git Service

net: hns3: replace macro of max qset number with specification
authorGuangbin Huang <huangguangbin2@huawei.com>
Fri, 5 Feb 2021 08:32:49 +0000 (16:32 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 22:36:05 +0000 (14:36 -0800)
commit3f094bd11a3720d2a00e9b6dfc53f1ab25884a49
tree5768544be0b1f2159a336aaabd991c046abb14f1
parent2783e77b8df96aea2a5719af19b5f85e89d91982
net: hns3: replace macro of max qset number with specification

The max qset number is a fixed value now and it is defined by a macro.
In order to support other value in different kinds of device, it is
better to use specification queried from firmware to replace macro.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h