]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add support for EQE/CQE mode configuration
authorYufeng Mo <moyufeng@huawei.com>
Fri, 20 Aug 2021 07:35:19 +0000 (15:35 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Aug 2021 14:38:29 +0000 (07:38 -0700)
commit7fe432bad65c5450f68503acea6d3ab60dda3955
treee7f0ccf59c95e294bac9fea851982e7f9f0a0a4c
parent04496e37a88c935827239a30299cc3360e5231f2
net: hns3: add support for EQE/CQE mode configuration

For device whose version is above V3(include V3), the GL can
select EQE or CQE mode, so adds support for it.

In CQE mode, the coalesced timer will restart when the first new
completion occurs, while in EQE mode, the timer will not restart.

Signed-off-by: Yufeng Mo <moyufeng@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_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c