RDMA/cxgb3: Fix QP capabilities

- Set the stag0 and fastreg capability bits only for kernel qps.
- QP_PRIV flag is no longer used, so don't set it.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

authored by Steve Wise and committed by Roland Dreier 5f0f66b0 6e86841d

+7 -16
+7 -16
drivers/infiniband/hw/cxgb3/iwch_qp.c
··· 879 879 (qhp->attr.mpa_attr.xmit_marker_enabled << 1) | 880 880 (qhp->attr.mpa_attr.crc_enabled << 2); 881 881 882 - /* 883 - * XXX - The IWCM doesn't quite handle getting these 884 - * attrs set before going into RTS. For now, just turn 885 - * them on always... 886 - */ 887 - #if 0 888 - init_attr.qpcaps = qhp->attr.enableRdmaRead | 889 - (qhp->attr.enableRdmaWrite << 1) | 890 - (qhp->attr.enableBind << 2) | 891 - (qhp->attr.enable_stag0_fastreg << 3) | 892 - (qhp->attr.enable_stag0_fastreg << 4); 893 - #else 894 - init_attr.qpcaps = 0x1f; 895 - #endif 882 + init_attr.qpcaps = uP_RI_QP_RDMA_READ_ENABLE | 883 + uP_RI_QP_RDMA_WRITE_ENABLE | 884 + uP_RI_QP_BIND_ENABLE; 885 + if (!qhp->ibqp.uobject) 886 + init_attr.qpcaps |= uP_RI_QP_STAG0_ENABLE | 887 + uP_RI_QP_FAST_REGISTER_ENABLE; 888 + 896 889 init_attr.tcp_emss = qhp->ep->emss; 897 890 init_attr.ord = qhp->attr.max_ord; 898 891 init_attr.ird = qhp->attr.max_ird; ··· 893 900 init_attr.qp_dma_size = (1UL << qhp->wq.size_log2); 894 901 init_attr.rqe_count = iwch_rqes_posted(qhp); 895 902 init_attr.flags = qhp->attr.mpa_attr.initiator ? MPA_INITIATOR : 0; 896 - if (!qhp->ibqp.uobject) 897 - init_attr.flags |= PRIV_QP; 898 903 if (peer2peer) { 899 904 init_attr.rtr_type = RTR_READ; 900 905 if (init_attr.ord == 0 && qhp->attr.mpa_attr.initiator)