]> git.baikalelectronics.ru Git - kernel.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)
commit6c34249fe073b56549548c9c23c71d58013db801
treed0d4adc552a8076624ae66cec4ce504b443a3eb0
parent8e39d5bb17f2ffd2fb583eddcb13d0398eef9d7f
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