[ofa-general] [PATCH RFC v3 1/2] RDMA/Core: MEM_MGT_EXTENSIONS support

Roland Dreier rdreier at cisco.com
Sun May 25 15:14:28 PDT 2008


 > 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;
 > }



More information about the general mailing list