diff options
author | Aviad Krawczyk | 2017-08-21 17:55:59 +0200 |
---|---|---|
committer | David S. Miller | 2017-08-22 19:48:53 +0200 |
commit | 53e7d6feb949b4df542897ab13a33fe484a45c72 (patch) | |
tree | faf1c86a8d97d28734160b3117c0ee3c677c02ee /drivers/net/ethernet/huawei/hinic/hinic_hw_io.h | |
parent | net-next/hinic: Add qp resources (diff) | |
download | kernel-qcow2-linux-53e7d6feb949b4df542897ab13a33fe484a45c72.tar.gz kernel-qcow2-linux-53e7d6feb949b4df542897ab13a33fe484a45c72.tar.xz kernel-qcow2-linux-53e7d6feb949b4df542897ab13a33fe484a45c72.zip |
net-next/hinic: Set qp context
Update the nic about the resources of the queue pairs.
Signed-off-by: Aviad Krawczyk <aviad.krawczyk@huawei.com>
Signed-off-by: Zhao Chen <zhaochen6@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/huawei/hinic/hinic_hw_io.h')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_hw_io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_io.h b/drivers/net/ethernet/huawei/hinic/hinic_hw_io.h index 2d85a38a1df6..60d77b343fa7 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hw_io.h +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_io.h @@ -23,6 +23,7 @@ #include "hinic_hw_if.h" #include "hinic_hw_wq.h" +#include "hinic_hw_cmdq.h" #include "hinic_hw_qp.h" #define HINIC_DB_PAGE_SIZE SZ_4K @@ -60,6 +61,10 @@ struct hinic_func_to_io { dma_addr_t ci_dma_base; struct hinic_free_db_area free_db_area; + + void __iomem *cmdq_db_area[HINIC_MAX_CMDQ_TYPES]; + + struct hinic_cmdqs cmdqs; }; int hinic_io_create_qps(struct hinic_func_to_io *func_to_io, |