diff options
author | Jack Morgenstein <jackm@mellanox.co.il> | 2006-01-06 16:01:27 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-01-06 16:01:27 -0500 |
commit | 0364ffc3e8c441d4185e3eb41ecc61dbb09614e4 (patch) | |
tree | 58ae797028c830eff6a8094d5911a9e251f92ad2 /drivers/infiniband | |
parent | 5b3bc7a68171138d52b1b62012c37ac888895460 (diff) |
IB/mthca: fix for SQEr-to-RTS transition in modify QP
Fixes to SQEr->RTS transition in modify_qp:
1. The flag IB_QP_ACCESS_FLAGS is optional for UC qps
2. The SQEr state is not supported for RC qps
Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_qp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c index fd60cf3a5ba3..623f5144eae2 100644 --- a/drivers/infiniband/hw/mthca/mthca_qp.c +++ b/drivers/infiniband/hw/mthca/mthca_qp.c | |||
@@ -476,9 +476,8 @@ static const struct { | |||
476 | .opt_param = { | 476 | .opt_param = { |
477 | [UD] = (IB_QP_CUR_STATE | | 477 | [UD] = (IB_QP_CUR_STATE | |
478 | IB_QP_QKEY), | 478 | IB_QP_QKEY), |
479 | [UC] = IB_QP_CUR_STATE, | 479 | [UC] = (IB_QP_CUR_STATE | |
480 | [RC] = (IB_QP_CUR_STATE | | 480 | IB_QP_ACCESS_FLAGS), |
481 | IB_QP_MIN_RNR_TIMER), | ||
482 | [MLX] = (IB_QP_CUR_STATE | | 481 | [MLX] = (IB_QP_CUR_STATE | |
483 | IB_QP_QKEY), | 482 | IB_QP_QKEY), |
484 | } | 483 | } |