diff options
author | 2017-08-21 23:55:59 +0800 | |
---|---|---|
committer | 2017-08-22 10:48:53 -0700 | |
commit | 53e7d6feb949b4df542897ab13a33fe484a45c72 (patch) | |
tree | faf1c86a8d97d28734160b3117c0ee3c677c02ee /drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h | |
parent | net-next/hinic: Add qp resources (diff) | |
download | linux-53e7d6feb949b4df542897ab13a33fe484a45c72.tar.gz linux-53e7d6feb949b4df542897ab13a33fe484a45c72.tar.bz2 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_wq.h')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h b/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h index 7c114daf13ef..8ce259ace24a 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h @@ -72,6 +72,15 @@ struct hinic_wqs { struct semaphore alloc_blocks_lock; }; +struct hinic_cmdq_pages { + /* The addresses are 64 bit in the HW */ + u64 page_paddr; + u64 *page_vaddr; + void **shadow_page_vaddr; + + struct hinic_hwif *hwif; +}; + int hinic_wqs_alloc(struct hinic_wqs *wqs, int num_wqs, struct hinic_hwif *hwif); |