projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9824b8f
)
IB/mlx4: Set RLKEY bit for kernel QPs
author
Vladimir Sokolovsky
<vlad@mellanox.co.il>
Thu, 9 Oct 2008 03:09:01 +0000
(20:09 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Thu, 9 Oct 2008 03:09:01 +0000
(20:09 -0700)
Set RLKEY bit in the HW context for kernel QPs so that kernel QPs can
use the reserved L_Key for memory reference.
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx4/qp.c
b/drivers/infiniband/hw/mlx4/qp.c
index 9559248f265b80090aeecd8c693059e9e43bdad0..baa01deb2436eb5e453a7784c867a3c7105f97d7 100644
(file)
--- a/
drivers/infiniband/hw/mlx4/qp.c
+++ b/
drivers/infiniband/hw/mlx4/qp.c
@@
-1058,6
+1058,9
@@
static int __mlx4_ib_modify_qp(struct ib_qp *ibqp,
else
sqd_event = 0;
+ if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
+ context->rlkey |= (1 << 4);
+
/*
* Before passing a kernel QP to the HW, make sure that the
* ownership bits of the send queue are set and the SQ