diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-07-28 02:10:01 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-29 06:02:10 +0300 |
commit | 18ebd40773bf500054a5e079e71cd13aafd1b6eb (patch) | |
tree | bef0ee616295773f124c08be71badb2e790e09c7 /drivers/infiniband/hw/mlx4/main.c | |
parent | a724648e8a8f7ff874f0d58491b39517718c7237 (diff) | |
download | linux-18ebd40773bf500054a5e079e71cd13aafd1b6eb.tar.xz |
mlx4, mlx5, mthca: Expose max_sge_rd correctly
Applications must not assume that max_sge and max_sge_rd are the same,
Hence expose max_sge_rd correctly as well.
Reported-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 8be6db816460..05166b7d8ca7 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -229,6 +229,7 @@ static int mlx4_ib_query_device(struct ib_device *ibdev, props->max_qp_wr = dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE; props->max_sge = min(dev->dev->caps.max_sq_sg, dev->dev->caps.max_rq_sg); + props->max_sge_rd = props->max_sge; props->max_cq = dev->dev->quotas.cq; props->max_cqe = dev->dev->caps.max_cqes; props->max_mr = dev->dev->quotas.mpt; |