Re: [PATCH for-next 11/20] RDMA/hns: Split CQE from MTT in hip08

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2017/9/14 1:52, Leon Romanovsky wrote:
On Wed, Aug 30, 2017 at 05:23:09PM +0800, Wei Hu (Xavier) wrote:
From: Shaobo Xu <xushaobo2@xxxxxxxxxx>

In hip08, the SQWQE/SGE/RQWQE and CQE have different hop num and
page size, so we need to manage the base address table of the
SQWQE/SGE/RQWQE and CQE separately.

This patch is to split CQE from MTT(SQWQE/SGE/RQWQE).

Signed-off-by: Shaobo Xu <xushaobo2@xxxxxxxxxx>
Signed-off-by: Lijun Ou <oulijun@xxxxxxxxxx>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@xxxxxxxxxx>
---
  drivers/infiniband/hw/hns/hns_roce_cq.c     | 15 ++++++-
  drivers/infiniband/hw/hns/hns_roce_device.h | 14 ++++--
  drivers/infiniband/hw/hns/hns_roce_hem.c    |  3 ++
  drivers/infiniband/hw/hns/hns_roce_main.c   | 17 ++++++++
  drivers/infiniband/hw/hns/hns_roce_mr.c     | 66 ++++++++++++++++++++++-------
  drivers/infiniband/hw/hns/hns_roce_qp.c     |  2 +
  6 files changed, 98 insertions(+), 19 deletions(-)
<...>

--- a/drivers/infiniband/hw/hns/hns_roce_device.h
+++ b/drivers/infiniband/hw/hns/hns_roce_device.h
@@ -170,6 +170,11 @@ enum {
  	HNS_ROCE_OPCODE_RDMA_WITH_IMM_RECEIVE	= 0x07,
  };

+enum hns_roce_mtt_type {
+	MTT_TYPE_WQE = 0,
+	MTT_TYPE_CQE,
+};
No need to initialize enum to zero.
Thanks
Hi, Leon
    We will send a followup patch to fix it at your suggestion.
    Thanks

    Regards
Wei Hu


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux