Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

IB/mlx4: Actually return L_Key and R_Key for fast register MRs

Initialize the L_Key and R_Key for memory regions returned from
mlx4_ib_alloc_fast_reg_mr(). Otherwise callers just get garbage for
the memory keys and can't do anything useful with these MRs.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Vladimir Sokolovsky and committed by
Linus Torvalds
4c246edd ee7cbabb

+2
+2
drivers/infiniband/hw/mlx4/mr.c
··· 204 204 if (err) 205 205 goto err_mr; 206 206 207 + mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; 208 + 207 209 return &mr->ibmr; 208 210 209 211 err_mr: