On Tue, Dec 22, 2015 at 06:58:14PM +0200, Sagi Grimberg wrote: > > >The ULP decides if this MR is going to be used as a lkey or rkey > >by passing IB_REG_LKEY or IB_REG_RKEY. The HCA driver will then > >fill mr->key by the lkey or rkey based on that and everything will > >work fine. > > But the ULP *can* register a memory buffer with local and remote > access permissions.
Not in the new API. If a ULP ever comes along that does need that then they can start with two MRs and then eventually upgrade the kapi to have some kind of efficient bidir MR mode. What we've seen on the list lately is that every single ULP seems to have technical problems running the stack properly. We need to get off this idea that the spec has to govern the kapi - that didn't lead us any place nice. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html