Quoting r. Roland Dreier <[EMAIL PROTECTED]>:
> Subject: Re: [PATCH] mthca: fix registration for giant MRs
>
> Michael> Why dont we keep mthca_mtt by instance in struct
> Michael> mthca_mr, like this: struct mthca_mr { struct ib_mr ibmr;
> Michael> struct mthca_mtt mtt; };
>
> Michael> Saves keeping around an extra small chunk of memory that
> Michael> we need to kfree/kmalloc/check. mthca_alloc_mtt could
> Michael> get struct mthca_mtt* and use that.
>
> My reasoning was that when we support shared memory regions we'll be
> able to share MTTs just by adding a reference cound to the mtt
> structure.
>
> - R.
>
Good idea.
--
MST
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general