Re: [RFC rdma-core 2/2] verbs: Introduce non-contiguous memory registration

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

 



On Thu, Jan 11, 2018 at 02:22:07PM +0200, Yuval Shaia wrote:
> > +The following code example demonstrates non-contiguous memory registration,
> > +by combining two contiguous regions, along with the WR-based completion semantic:
> > +.PP
> > +.nf
> > +mr1 = ibv_reg_mr(pd, addr1, len1, 0);
> > +if (!mr1) {
> > +        fprintf(stderr, "Failed to create MR #1\en");
> > +        return 1;
> > +}
> > +
> > +mr2 = ibv_reg_mr(pd, addr2, len2, 0);
> > +if (!mr2) {
> > +        fprintf(stderr, "Failed to create MR #2\en");
> > +        return 1;
> > +}
> 
> So, to register non-contiguous 512 random buffers i would have to create
> 512 MRs?

That is a fair point - I wonder if some of these API should have an
option to accept a pointer directly? Maybe the driver requires a MR
but we don't need that as an the API?

Particularly the _sg one..

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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