Re: [PATCH 16/20] RDMA/rw: Use IB_WR_REG_MR_INTEGRITY for PI handover

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

 




+ memcpy(ctx->reg->mr->sig_attrs, sig_attrs, sizeof(struct ib_sig_attrs));

Why do we need to do a struct copy here instead of setting up a pointer?

Yea, can't we use the mr->sig_attrs directly?

No, the MR is internal to RW API and the sig_attrs comes from isert. I don't want to loose the pointer I've allocated. it will cause a leak.

Yes, that makes sense Max.



[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