RDMA/cxgb4: Max fastreg depth depends on DSGL support
authorSteve Wise <swise@opengridcomputing.com>
Wed, 9 Apr 2014 14:38:27 +0000 (09:38 -0500)
committerRoland Dreier <roland@purestorage.com>
Fri, 11 Apr 2014 18:36:08 +0000 (11:36 -0700)
commita03d9f94cc54199bf681729b16ba649d7206369e
treee2bebbff12cd98b99d2e8110cdd1a4b8af5afea9
parentb4e2901c52cc79f287e2b25804e029880e5e4b07
RDMA/cxgb4: Max fastreg depth depends on DSGL support

The max depth of a fastreg mr depends on whether the device supports
DSGL or not.  So compute it dynamically based on the device support
and the module use_dsgl option.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/provider.c
drivers/infiniband/hw/cxgb4/qp.c
drivers/infiniband/hw/cxgb4/t4.h