summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-03-27 18:22:25 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2014-04-07 10:48:52 +0200
commitf225225848a70006d039b4caa2a089b660756cd5 (patch)
tree13a897eddd3f57a325657c29abccb7ee0eb10224
parentiser-target: Add missing se_cmd put for WRITE_PENDING in tx_comp_err (diff)
downloadlinux-f225225848a70006d039b4caa2a089b660756cd5.tar.xz
linux-f225225848a70006d039b4caa2a089b660756cd5.zip
Target/iser: Use Fastreg only if device supports signature
Fastreg is mandatory for signature, so if the device doesn't support it we don't need to use it. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index f7801aeb7628..f5cc4affaeb4 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -231,7 +231,8 @@ isert_create_device_ib_res(struct isert_device *device)
return ret;
/* asign function handlers */
- if (dev_attr->device_cap_flags & IB_DEVICE_MEM_MGT_EXTENSIONS) {
+ if (dev_attr->device_cap_flags & IB_DEVICE_MEM_MGT_EXTENSIONS &&
+ dev_attr->device_cap_flags & IB_DEVICE_SIGNATURE_HANDOVER) {
device->use_fastreg = 1;
device->reg_rdma_mem = isert_reg_rdma;
device->unreg_rdma_mem = isert_unreg_rdma;