diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2010-10-07 16:24:16 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-10-11 14:33:17 -0700 |
commit | 5a0fd09428e47fb08d5a887515d92bb2447f4b65 (patch) | |
tree | 83a6642cb0dfd99dff733dde7b4c7aa40df2d920 /drivers/infiniband/hw/mlx4/main.c | |
parent | 0498628f974d4132ba34b06fc24786a00401b79c (diff) | |
download | blackbird-op-linux-5a0fd09428e47fb08d5a887515d92bb2447f4b65.tar.gz blackbird-op-linux-5a0fd09428e47fb08d5a887515d92bb2447f4b65.zip |
IB/mlx4: Limit size of fast registration WRs
Fix the limit on the size of max fast registration WRs that can be
posted to match hardware capabilities.
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 4e94e360e43b..62e8cd6f0371 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -135,7 +135,7 @@ static int mlx4_ib_query_device(struct ib_device *ibdev, props->max_srq = dev->dev->caps.num_srqs - dev->dev->caps.reserved_srqs; props->max_srq_wr = dev->dev->caps.max_srq_wqes - 1; props->max_srq_sge = dev->dev->caps.max_srq_sge; - props->max_fast_reg_page_list_len = PAGE_SIZE / sizeof (u64); + props->max_fast_reg_page_list_len = MLX4_MAX_FAST_REG_PAGES; props->local_ca_ack_delay = dev->dev->caps.local_ca_ack_delay; props->atomic_cap = dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_ATOMIC ? IB_ATOMIC_HCA : IB_ATOMIC_NONE; |