aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/isert/ib_isert.h
diff options
context:
space:
mode:
authorVu Pham <vu@mellanox.com>2013-08-28 23:23:34 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2013-09-10 16:48:50 -0700
commitd40945d8c2fbbff8adb6f35cc3e268df4934eb2a (patch)
tree29dd17cc85d3f273652e70230d57cae2fa35f2ac /drivers/infiniband/ulp/isert/ib_isert.h
parentiser-target: move rdma wr processing to a shared function (diff)
downloadlinux-dev-d40945d8c2fbbff8adb6f35cc3e268df4934eb2a.tar.xz
linux-dev-d40945d8c2fbbff8adb6f35cc3e268df4934eb2a.zip
iser-target: generalize rdma memory registration and cleanup
Current driver uses global dma key to register the memory pointed by sg list provided by the target core. This is the preparation step for adding more methods like fast path memory registration, make the reg/unreg calls be function pointers. Signed-off-by: Vu Pham <vu@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband/ulp/isert/ib_isert.h')
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.h b/drivers/infiniband/ulp/isert/ib_isert.h
index 21ffd4eff004..76565030e4e7 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.h
+++ b/drivers/infiniband/ulp/isert/ib_isert.h
@@ -128,6 +128,11 @@ struct isert_device {
struct ib_cq *dev_tx_cq[ISERT_MAX_CQ];
struct isert_cq_desc *cq_desc;
struct list_head dev_node;
+ int (*reg_rdma_mem)(struct iscsi_conn *conn,
+ struct iscsi_cmd *cmd,
+ struct isert_rdma_wr *wr);
+ void (*unreg_rdma_mem)(struct isert_cmd *isert_cmd,
+ struct isert_conn *isert_conn);
};
struct isert_np {