Commit 547e3090 authored by Roland Dreier's avatar Roland Dreier

[IB] mthca: correct modify QP attribute masks for UC

The UC transport does not support RDMA reads or atomic operations, so
we shouldn't require or even allow the consumer to set attributes
relating to these operations for UC QPs.
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 34816ad9
...@@ -338,8 +338,7 @@ static const struct { ...@@ -338,8 +338,7 @@ static const struct {
[UC] = (IB_QP_AV | [UC] = (IB_QP_AV |
IB_QP_PATH_MTU | IB_QP_PATH_MTU |
IB_QP_DEST_QPN | IB_QP_DEST_QPN |
IB_QP_RQ_PSN | IB_QP_RQ_PSN),
IB_QP_MAX_DEST_RD_ATOMIC),
[RC] = (IB_QP_AV | [RC] = (IB_QP_AV |
IB_QP_PATH_MTU | IB_QP_PATH_MTU |
IB_QP_DEST_QPN | IB_QP_DEST_QPN |
...@@ -368,8 +367,7 @@ static const struct { ...@@ -368,8 +367,7 @@ static const struct {
.trans = MTHCA_TRANS_RTR2RTS, .trans = MTHCA_TRANS_RTR2RTS,
.req_param = { .req_param = {
[UD] = IB_QP_SQ_PSN, [UD] = IB_QP_SQ_PSN,
[UC] = (IB_QP_SQ_PSN | [UC] = IB_QP_SQ_PSN,
IB_QP_MAX_QP_RD_ATOMIC),
[RC] = (IB_QP_TIMEOUT | [RC] = (IB_QP_TIMEOUT |
IB_QP_RETRY_CNT | IB_QP_RETRY_CNT |
IB_QP_RNR_RETRY | IB_QP_RNR_RETRY |
...@@ -446,8 +444,6 @@ static const struct { ...@@ -446,8 +444,6 @@ static const struct {
[UD] = (IB_QP_PKEY_INDEX | [UD] = (IB_QP_PKEY_INDEX |
IB_QP_QKEY), IB_QP_QKEY),
[UC] = (IB_QP_AV | [UC] = (IB_QP_AV |
IB_QP_MAX_QP_RD_ATOMIC |
IB_QP_MAX_DEST_RD_ATOMIC |
IB_QP_CUR_STATE | IB_QP_CUR_STATE |
IB_QP_ALT_PATH | IB_QP_ALT_PATH |
IB_QP_ACCESS_FLAGS | IB_QP_ACCESS_FLAGS |
...@@ -478,7 +474,7 @@ static const struct { ...@@ -478,7 +474,7 @@ static const struct {
.opt_param = { .opt_param = {
[UD] = (IB_QP_CUR_STATE | [UD] = (IB_QP_CUR_STATE |
IB_QP_QKEY), IB_QP_QKEY),
[UC] = (IB_QP_CUR_STATE), [UC] = IB_QP_CUR_STATE,
[RC] = (IB_QP_CUR_STATE | [RC] = (IB_QP_CUR_STATE |
IB_QP_MIN_RNR_TIMER), IB_QP_MIN_RNR_TIMER),
[MLX] = (IB_QP_CUR_STATE | [MLX] = (IB_QP_CUR_STATE |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment