RDMA/iser: Limit sgs to the device fastreg depth
authorSteve Wise <swise@opengridcomputing.com>
Tue, 28 Jul 2015 14:13:52 +0000 (09:13 -0500)
committerDoug Ledford <dledford@redhat.com>
Sat, 29 Aug 2015 02:54:47 +0000 (22:54 -0400)
Currently the sg tablesize, which dictates fast register page list
depth to use, does not take into account the limits of the rdma device.
So adjust it once we discover the device fastreg max depth limit.  Also
adjust the max_sectors based on the resulting sg tablesize.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/iser/iscsi_iser.c