IB/srp: Use the IB_DEVICE_SG_GAPS_REG HCA feature if supported
authorSergey Gorenko <sergeygo@mellanox.com>
Mon, 5 Mar 2018 18:15:56 +0000 (20:15 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 6 Mar 2018 23:00:51 +0000 (16:00 -0700)
commitfbd36818eea88462be4176c9fb73bb7728971ff5
treec0466f9042c1c7c7c71832a2aa9250b5b99910fb
parent41904439479e94dd61ac499312e8d8266b13f81d
IB/srp: Use the IB_DEVICE_SG_GAPS_REG HCA feature if supported

If a HCA supports the SG_GAPS_REG feature then fewer memory regions
are required per command. This patch reduces the number of memory
regions that is allocated per SRP session.

Signed-off-by: Sergey Gorenko <sergeygo@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Acked-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/srp/ib_srp.c