Skip to content
Commit fbd36818 authored by Sergey Gorenko's avatar Sergey Gorenko Committed by Jason Gunthorpe
Browse files

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: default avatarSergey Gorenko <sergeygo@mellanox.com>
Reviewed-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Tested-by: default avatarLaurence Oberman <loberman@redhat.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Acked-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 41904439
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment