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

Wei Hu (Xavier)
2017-09-15T01:09:28Z

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-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
>>
>> 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-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
>> Signed-off-by: Lijun Ou <oulijun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
>> Signed-off-by: Wei Hu (Xavier) <xavier.huwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
>> ---
>> 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