On Tue, Dec 22, 2015 at 03:50:12PM +0200, Sagi Grimberg wrote:
This is why I said that the problem here is not the ULPs. But if a new
HW comes along with distinction between rkeys and lkeys it will have a
problem. For example a HW allocates two different keys, rkey and lkey.
And, it chooses to fail SEND from a rkey, or incoming READ/WRITE to a
lkey. How can such a device be supported with an API that allows a
single key per MR?
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html