libmthca: Add support for I/O memory registration verbs
RFC PATCH 1/1 libmthca: Add support for I/O memory registration verbs
This patchset adds support for the new I/O memory registration verbs to libmthca.
---
Tom Tucker (1):
libmthca: Add support for the reg_io_mr verb.
src/mthca-abi.h | 4 ++++ src/mthca.c | 2 ++ src/mthca.h | 4 ++++ src/verbs.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 0 deletions(-)
Signature · 5 lines
Signed-off-by: Tom Tucker <tom-/Yg/[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20100729163624.15024.57249.stgit-T4OLL4TyM9aNDNWfRnPdfg@public.gmane.org
RFC PATCH 1/1 libmthca: Add support for the reg_io_mr verb.
From: Tom Tucker <[email protected]>
Added support for the ibv_reg_io_mr and ibv_unreg_io_mr verbs to the mthca ilbrary.
---
src/mthca-abi.h | 4 ++++ src/mthca.c | 2 ++ src/mthca.h | 4 ++++ src/verbs.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 0 deletions(-)
src/mthca-abi.h +4 -0
@@ -61,6 +61,10 @@ struct mthca_reg_mr {__u32 reserved; }; +struct mthca_reg_io_mr { +struct ibv_reg_io_mr ibv_cmd; +}; +struct mthca_create_cq {struct ibv_create_cq ibv_cmd;__u32 lkey;
src/mthca.c +2 -0
@@ -113,6 +113,8 @@ static struct ibv_context_ops mthca_ctx_ops = { .dealloc_pd = mthca_free_pd, .reg_mr = mthca_reg_mr, .dereg_mr = mthca_dereg_mr, + .reg_io_mr = mthca_reg_io_mr, + .dereg_io_mr = mthca_dereg_io_mr, .create_cq = mthca_create_cq, .poll_cq = mthca_poll_cq, .resize_cq = mthca_resize_cq,
src/mthca.h +4 -0
@@ -312,6 +312,10 @@ struct ibv_mr *mthca_reg_mr(struct ibv_pd *pd, void *addr, size_t length, int access);int mthca_dereg_mr (struct ibv_mr *mr); +struct ibv_mr *mthca_reg_io_mr (struct ibv_pd *pd,void *addr, +size_t length,enum ibv_access_flags access); +int mthca_dereg_io_mr (struct ibv_mr *mr); +struct ibv_cq *mthca_create_cq (struct ibv_context *context,int cqe,struct ibv_comp_channel *channel,int comp_vector);
src/verbs.c +50 -0
56 lines not on this page · raw message
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20100729163650.15024.66012.stgit-T4OLL4TyM9aNDNWfRnPdfg@public.gmane.org
RE: [RFC PATCH] libmthca: Add support for the reg_io_mr verb.
SGkgVG9tLA0KV2hhdCBpcyB0aGUgcHVycG9zZSBvZiB0aGlzPw0KSXMgdGhlcmUgYSByZWFzb24g eW91IGRpZCBpdCBvbmx5IGZvciBtdGhjYSBhbmQgbm90IG1seDQ/DQoNClR6aXBvcmV0DQo= --
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): E113D394D7C5DB4F8FF691FA7EE9DB443B3910A85A-WQlSmcKwN8Te+A/[email protected]
Re: [RFC PATCH] libmthca: Add support for the reg_io_mr verb.
Quoted 6 lines · Tziporet Koren
Hi Tom,
What is the purpose of this?
Is there a reason you did it only for mthca and not mlx4?Tziporet
Hi Tziporet,
I just picked mthca arbitrarily to demonstrate how to do it. If people like the verb, then I'll do it for all the devices, but I didn't want to do all that work when there are likely to be changes.
But the point is that this is certainly not a mthca only functionality.
Thanks,
Tom
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html