]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iw_cxgb4: Max fastreg depth depends on DSGL support
authorHariprasad S <hariprasad@chelsio.com>
Fri, 12 Feb 2016 10:40:35 +0000 (16:10 +0530)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:10:15 +0000 (17:10 -0500)
commitee30f7d507c0f3b3499bbe84d14849a6b5ac9484
treed0d4adc552a8076624ae66cec4ce504b443a3eb0
parentac8e4c69a02103d17247a3fae8daa10ae3497c2d
iw_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: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/mem.c
drivers/infiniband/hw/cxgb4/provider.c
drivers/infiniband/hw/cxgb4/qp.c