net: hns3: add support for TX push mode
authorYufeng Mo <moyufeng@huawei.com>
Mon, 7 Feb 2022 01:44:23 +0000 (09:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Feb 2022 12:29:59 +0000 (12:29 +0000)
commit87a9b2fd9288c56c0cbfb09f31a5e864d4bdde61
treeb6be61ba4fedc0384c9d16abe775c9c9d6aa23cb
parent920a9fa27e7805499cfe78491b36fed2322c02ec
net: hns3: add support for TX push mode

For the device that supports the TX push capability, the BD can
be directly copied to the device memory. However, due to hardware
restrictions, the push mode can be used only when there are no
more than two BDs, otherwise, the doorbell mode based on device
memory is used.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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/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