ipath,qib: Expose max_sge_rd correctly
authorSteve Wise <swise@opengridcomputing.com>
Mon, 27 Jul 2015 23:10:07 +0000 (18:10 -0500)
committerDoug Ledford <dledford@redhat.com>
Sat, 29 Aug 2015 03:02:11 +0000 (23:02 -0400)
Applications must not assume that max_sge and max_sge_rd are the same,
Hence expose max_sge_rd correctly as well.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib_verbs.c
drivers/staging/rdma/ipath/ipath_verbs.c

index 77e981abfce47cb3aea751c5337ebcee7d2de82b..bc0599ca140a1f418b0a661eb2770887e339eb3a 100644 (file)
@@ -1575,6 +1575,7 @@ static int qib_query_device(struct ib_device *ibdev, struct ib_device_attr *prop
        props->max_qp = ib_qib_max_qps;
        props->max_qp_wr = ib_qib_max_qp_wrs;
        props->max_sge = ib_qib_max_sges;
+       props->max_sge_rd = ib_qib_max_sges;
        props->max_cq = ib_qib_max_cqs;
        props->max_ah = ib_qib_max_ahs;
        props->max_cqe = ib_qib_max_cqes;
index 30ba49c4a98c06b21dff0e0599569dfad19f1f17..ed2bbc2f7eaeb76ab9a21913b0fbe1f887bc3895 100644 (file)
@@ -1521,6 +1521,7 @@ static int ipath_query_device(struct ib_device *ibdev, struct ib_device_attr *pr
        props->max_qp = ib_ipath_max_qps;
        props->max_qp_wr = ib_ipath_max_qp_wrs;
        props->max_sge = ib_ipath_max_sges;
+       props->max_sge_rd = ib_ipath_max_sges;
        props->max_cq = ib_ipath_max_cqs;
        props->max_ah = ib_ipath_max_ahs;
        props->max_cqe = ib_ipath_max_cqes;