net: hns3: add support for configuring interrupt quantity limiting
authorHuazhong Tan <tanhuazhong@huawei.com>
Mon, 16 Nov 2020 08:20:51 +0000 (16:20 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 19:39:20 +0000 (11:39 -0800)
commit91bfae25eedd981b384339c7b12bef9eeaba0f34
tree38cdc6454bb0fdc209bdfdaf91104e77d3f5acb7
parent0676a4ea28471a20fd4d57a0b70578a8799838a3
net: hns3: add support for configuring interrupt quantity limiting

QL(quantity limiting) means that hardware supports the interrupt
coalesce based on the frame quantity.  QL can be configured when
int_ql_max in device's specification is non-zero, so add support
to configure it. Also, rename two coalesce init function to fit
their purpose.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c