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)
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>

No differences found