diff options
author | Yufeng Mo <moyufeng@huawei.com> | 2022-02-07 09:44:23 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-07 12:29:59 +0000 |
commit | 87a9b2fd9288c56c0cbfb09f31a5e864d4bdde61 (patch) | |
tree | b6be61ba4fedc0384c9d16abe775c9c9d6aa23cb /drivers/net/ethernet/hisilicon/hns3/hnae3.h | |
parent | 920a9fa27e7805499cfe78491b36fed2322c02ec (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 9298fbecb31a..6f18c9a03231 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -167,6 +167,7 @@ struct hnae3_handle; struct hnae3_queue { void __iomem *io_base; + void __iomem *mem_base; struct hnae3_ae_algo *ae_algo; struct hnae3_handle *handle; int tqp_index; /* index in a handle */ |