> > > If the rkey's and lkeys are always the same why do we store them twice in the mr ? > > > > They are not always the same currently. If you request remote access they are the same if you don't rkey is set to zero. > > You could, of course, check both the keys and the access bits but that is not the way it is written currently. > Storing the rkey instead of checking the flags seems like a weird obfuscation to me.. > Jason One always has the choice to always just use the lkey and check the flags. But referring the rkey just uses one memory reference 😊