diff options
author | Steve Wise <swise@opengridcomputing.com> | 2010-05-20 17:57:59 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-05-25 00:08:03 -0400 |
commit | 25737bd4ca1b58e86efa9211c1717140e0d4910e (patch) | |
tree | ea245e4b9f99a97c86df7130b425691635eb7dc1 /drivers/infiniband | |
parent | 841dba9a5a0dbced4b4bc240f444d47f30ba6724 (diff) |
RDMA/cxgb4: Don't limit fastreg page list depth
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/mem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index 993ed1fe7bf6..7f94da1a2437 100644 --- a/drivers/infiniband/hw/cxgb4/mem.c +++ b/drivers/infiniband/hw/cxgb4/mem.c | |||
@@ -759,9 +759,6 @@ struct ib_fast_reg_page_list *c4iw_alloc_fastreg_pbl(struct ib_device *device, | |||
759 | dma_addr_t dma_addr; | 759 | dma_addr_t dma_addr; |
760 | int size = sizeof *c4pl + page_list_len * sizeof(u64); | 760 | int size = sizeof *c4pl + page_list_len * sizeof(u64); |
761 | 761 | ||
762 | if (page_list_len > T4_MAX_FR_DEPTH) | ||
763 | return ERR_PTR(-EINVAL); | ||
764 | |||
765 | c4pl = dma_alloc_coherent(&dev->rdev.lldi.pdev->dev, size, | 762 | c4pl = dma_alloc_coherent(&dev->rdev.lldi.pdev->dev, size, |
766 | &dma_addr, GFP_KERNEL); | 763 | &dma_addr, GFP_KERNEL); |
767 | if (!c4pl) | 764 | if (!c4pl) |