]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IB/srp: Create an insecure all physical rkey only if needed
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 11 Aug 2015 00:09:36 +0000 (17:09 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:12:39 +0000 (18:12 -0400)
commit03f6fb93fde24f01a940283bdf55024e576ee87d
tree946ef8372221dfd5a56a1f1b7df2d98f0e1ae474
parent330179f2fa93c1c6c41a90c7deabc98e363018e5
IB/srp: Create an insecure all physical rkey only if needed

The SRP initiator only needs this if the insecure register_always=N
performance optimization is enabled, or if FRWR/FMR is not supported
in the driver.

Do not create an all physical MR unless it is needed to support
either of those modes. Default register_always to true so the out of
the box configuration does not create an insecure all physical MR.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
[bvanassche: reworked and rebased this patch]
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h