Re: [PATCH rdma-core 3/3] libhns: Fix endian format of payload and immediate

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

 



On Wed, Nov 01, 2017 at 10:13:28AM -0600, Jason Gunthorpe wrote:
> On Wed, Nov 01, 2017 at 06:00:40PM +0800, Lijun Ou wrote:
> > @@ -385,7 +385,7 @@ static int hns_roce_v2_poll_one(struct hns_roce_cq *cq,
> >  		case HNS_ROCE_RECV_OP_RDMA_WRITE_IMM:
> >  			wc->opcode = IBV_WC_RECV_RDMA_WITH_IMM;
> >  			wc->wc_flags = IBV_WC_WITH_IMM;
> > -			wc->imm_data = cqe->rkey_immtdata;
> > +			wc->imm_data = be32toh(cqe->rkey_immtdata);
> >  			break;
>
> This can't be right, wc->imm_data is marked be32.

Lijun,

Are you going to fix it?

Thanks

Attachment: signature.asc
Description: PGP signature


[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