]> 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)
commit9f0c6f4b7475dd97e1f0eed81dd6ff173cf8c7fc
treee7f0ccf59c95e294bac9fea851982e7f9f0a0a4c
parentf3ccfda1931977b80267ba54070a1aeafa18f6ca
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