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: NSergey Gorenko <sergeygo@mellanox.com> Reviewed-by: NMax Gurtovoy <maxg@mellanox.com> Tested-by: NLaurence Oberman <loberman@redhat.com> Signed-off-by: NLeon Romanovsky <leon@kernel.org> Acked-by: NBart Van Assche <bart.vanassche@wdc.com> Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
Showing
想要评论请 注册 或 登录