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
Attachment:
signature.asc
Description: PGP signature