]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix port returned from query QP for QPs in INIT state
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 18 Jul 2007 01:37:38 +0000 (18:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 18 Jul 2007 01:37:38 +0000 (18:37 -0700)
commit777a862ca91cc087a02346c4a59899b0533cc1d4
tree57f80f30c38fe8040944a6bad3c214db0cbe2f04
parent3756a6baa231042e440b405c653f48eacb35f356
IB/mlx4: Fix port returned from query QP for QPs in INIT state

When a QP is in the INIT state, the sched_queue field hasn't been given
to the firmware yet, so the firmware cannot return the value when the QP
is queried.  To handle this, use the port number that is saved in the
driver's QP data structure.

Found by Dotan Barak and Yaron Gepstein of Mellanox.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c