]> err.no Git - linux-2.6/commitdiff
IB/ehca: Report RDMA atomic attributes in query_qp()
authorHoang-Nam Nguyen <hnguyen@de.ibm.com>
Mon, 9 Jul 2007 13:28:18 +0000 (15:28 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 10 Jul 2007 03:12:27 +0000 (20:12 -0700)
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_qp.c

index 3a4b2bfdb06b23eb9a267e0b78880d90e1c83c4c..ec34ff43290095f0ffe1aada55af384bba22f9d5 100644 (file)
@@ -1491,6 +1491,9 @@ int ehca_query_qp(struct ib_qp *qp,
        qp_attr->alt_port_num = qpcb->alt_phys_port;
        qp_attr->alt_timeout = qpcb->timeout_al;
 
+       qp_attr->max_dest_rd_atomic = qpcb->rdma_nr_atomic_resp_res;
+       qp_attr->max_rd_atomic = qpcb->rdma_atomic_outst_dest_qp;
+
        /* primary av */
        qp_attr->ah_attr.sl = qpcb->service_level;