diff options
author | Vu Pham <vu@mellanox.com> | 2013-08-28 23:23:34 +0300 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-09-10 16:48:50 -0700 |
commit | d40945d8c2fbbff8adb6f35cc3e268df4934eb2a (patch) | |
tree | 29dd17cc85d3f273652e70230d57cae2fa35f2ac /drivers/infiniband/ulp/isert/ib_isert.h | |
parent | 90ecc6e251c06971a13f5b7bae0d7e29dffd0c6c (diff) | |
download | op-kernel-dev-d40945d8c2fbbff8adb6f35cc3e268df4934eb2a.zip op-kernel-dev-d40945d8c2fbbff8adb6f35cc3e268df4934eb2a.tar.gz |
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.h | 5 |
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 21ffd4e..7656503 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 { |