aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
diff options
context:
space:
mode:
authorHariprasad Shenai <hariprasad@chelsio.com>2014-07-21 20:55:16 +0530
committerDavid S. Miller <davem@davemloft.net>2014-07-21 20:23:59 -0700
commit91244bbd6b383621fd6833cb1d9409c4ab6caecf (patch)
tree4079e5c0c2068538217d3af5840fa3422224a9db /drivers/infiniband/hw/cxgb4/iw_cxgb4.h
parentiw_cxgb4: advertise the correct device max attributes (diff)
downloadlinux-dev-91244bbd6b383621fd6833cb1d9409c4ab6caecf.tar.xz
linux-dev-91244bbd6b383621fd6833cb1d9409c4ab6caecf.zip
iw_cxgb4: Don't limit TPTE count to 32KB
Use the size advertised by FW Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/iw_cxgb4.h')
-rw-r--r--drivers/infiniband/hw/cxgb4/iw_cxgb4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
index 69f047cdba6a..c378fd25ee0c 100644
--- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
+++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
@@ -193,7 +193,7 @@ static inline int c4iw_fatal_error(struct c4iw_rdev *rdev)
static inline int c4iw_num_stags(struct c4iw_rdev *rdev)
{
- return min((int)T4_MAX_NUM_STAG, (int)(rdev->lldi.vr->stag.size >> 5));
+ return (int)(rdev->lldi.vr->stag.size >> 5);
}
#define C4IW_WR_TO (30*HZ)