]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ipath: Fix RC QP initialization
authorPatrick Marchand Latifi <patrick.latifi@qlogic.com>
Sat, 19 Jan 2008 04:10:48 +0000 (20:10 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 11 Mar 2008 21:02:32 +0000 (14:02 -0700)
commit4cd5060cf7c2207c31e2e368f8a6343355362e51
treeaa1a5eb987aa39b06c3f582cb0206ba3f4ee5626
parent87d5aed85b2d79e4075ad2ca1449e9b98f657a09
IB/ipath: Fix RC QP initialization

This patch fixes the initialization of RC QPs, since we would rely on
the queue pair type (ibqp->qp_type) being set, but this field is only
initialized when we return from ipath_create_qp (it is initialized by
the user-level verbs library).

The fix is to not depend on this field to initialize the send and
the receive state of the RC QP.

Signed-off-by: Patrick Marchand Latifi <patrick.latifi@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_qp.c