[ofa-general] [PATCH RFC v3 1/2] RDMA/Core: MEM_MGT_EXTENSIONS support
Roland Dreier
rdreier at cisco.com
Sun May 25 15:21:03 PDT 2008
> > 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;
> > }
I just looked in the IB spec (1.2.1) and it talks about passing the "Key
to use on the new L_Key and R_Key" into a fastreg work request.
So I think we can just can the test for rkey==lkey and just do
mr->lkey = mr->lkey & 0xffffff00 | newkey;
mr->rkey = mr->rkey & 0xffffff00 | newkey;
- R.
More information about the general
mailing list