net: hns3: RSS indirection table use device specification
authorGuangbin Huang <huangguangbin2@huawei.com>
Fri, 5 Feb 2021 08:32:45 +0000 (16:32 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 22:36:05 +0000 (14:36 -0800)
commit87ce161e8c67aca9e64a77355f748e212122ace4
treeb445b402778bf303cc6f7ccb51c2d48089a00edd
parent1cef42c8474f22d6a8509a19c0b578e5f60138d9
net: hns3: RSS indirection table use device specification

As RSS indirection table size may be different in different
hardware. Instead of using macro, this value is better to use
device specification which querying from firmware.

BTW, RSS indirection table should be allocated by the queried
size instead the static array.

.get_rss_indir_size in struct hnae3_ae_ops is not used now,
so remove it as well.

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_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h