> So something like this?
yeah, looks reasonable...
> static void ib_update_fast_reg_key(struct ib_mr *mr, u8 newkey)
> {
> /* iWARP: rkey == lkey */
actually I need to reread the IB spec and understand how the consumer
key part of L_Key and R_Key is supposed to work... for Mellanox adapters
at least the L_Key and R_Key are the same too.
> if (mr->rkey == mr->lkey)
> mr->lkey = mr->lkey & 0xffffff00 | newkey;
> mr->rkey = mr->rkey & 0xffffff00 | newkey;
> }
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general