Re: [PATCH 4/7] RDMA/bnxt_re: Enable GSI QP support for 57500 series

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

 



On Thu, Jan 3, 2019 at 2:30 AM Jason Gunthorpe <jgg@xxxxxxxxxxxx> wrote:
>
> On Mon, Dec 31, 2018 at 01:10:04AM -0500, Devesh Sharma wrote:
>
> > @@ -2418,12 +2422,15 @@ static int bnxt_qplib_cq_process_res_ud(struct bnxt_qplib_cq *cq,
> >       }
> >       cqe = *pcqe;
> >       cqe->opcode = hwcqe->cqe_type_toggle & CQ_BASE_CQE_TYPE_MASK;
> > -     cqe->length = le32_to_cpu(hwcqe->length);
> > +     cqe->length = (u32)le16_to_cpu(hwcqe->length);
> > +     cqe->cfa_meta = le16_to_cpu(hwcqe->cfa_metadata);
> >       cqe->invrkey = le32_to_cpu(hwcqe->imm_data);
> >       cqe->flags = le16_to_cpu(hwcqe->flags);
> >       cqe->status = hwcqe->status;
> >       cqe->qp_handle = (u64)(unsigned long)qp;
> > -     memcpy(cqe->smac, hwcqe->src_mac, 6);
> > +     smac = (u8 *)hwcqe->src_mac;
> > +     for (i = 0, j = (ETH_ALEN - 1); i < ETH_ALEN; i++, j--)
> > +             cqe->smac[i] = smac[j];
>
> Is this an endian-ness bug fix for the current driver too?
True, it is. do you prefer this in a separate patch?
>
> 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