Re: [PATCH for-next] RDMA/hns: Add UD support for hip08

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

 



On Fri, Oct 04, 2019 at 10:13:00AM +0800, Weihang Li wrote:
> > diff --git a/drivers/infiniband/hw/hns/hns_roce_qp.c b/drivers/infiniband/hw/hns/hns_roce_qp.c
> > index ba81768..5374cd0 100644
> > +++ b/drivers/infiniband/hw/hns/hns_roce_qp.c
> > @@ -377,6 +377,10 @@ static int hns_roce_set_user_sq_size(struct hns_roce_dev *hr_dev,
> >  		hr_qp->sge.sge_cnt = roundup_pow_of_two(hr_qp->sq.wqe_cnt *
> >  							(hr_qp->sq.max_gs - 2));
> >  
> > +	if (hr_qp->ibqp.qp_type == IB_QPT_UD)
> > +		hr_qp->sge.sge_cnt = roundup_pow_of_two(hr_qp->sq.wqe_cnt *
> > +						       hr_qp->sq.max_gs);
> > +
> >  	if ((hr_qp->sq.max_gs > 2) && (hr_dev->pci_dev->revision == 0x20)) {
> >  		if (hr_qp->sge.sge_cnt > hr_dev->caps.max_extend_sg) {
> >  			dev_err(hr_dev->dev,
> > @@ -1005,6 +1009,7 @@ struct ib_qp *hns_roce_create_qp(struct ib_pd *pd,
> >  	int ret;
> >  
> >  	switch (init_attr->qp_type) {
> > +	case IB_QPT_UD:
> >  	case IB_QPT_RC: {
> >  		hr_qp = kzalloc(sizeof(*hr_qp), GFP_KERNEL);
> >  		if (!hr_qp)
> > 
> 
> Hi Jason & Leon,
> 
> Do you have some suggestions on this patch? Could it be applied to for-next?

I'm not applying any more hns patches for features until the security
issue is settled

Jason



[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