Skip to content

Commit

Permalink
IB/mlx4: Set RLKEY bit for kernel QPs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir Sokolovsky authored and Roland Dreier committed Oct 9, 2008
1 parent 9824b8f commit d57f5f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/infiniband/hw/mlx4/qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d57f5f7

Please sign in to comment.