From e71b75575658c435bc77c01ef098336c563af740 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 30 Sep 2014 14:55:26 +0200 Subject: Fixed a bug in RDMA memory allocation (Size information was missing) Added test-latency and test-bandwith tests --- src/kiro-client.h | 4 ++-- src/kiro-rdma.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/kiro-client.h b/src/kiro-client.h index b03bab9..b4e1b09 100644 --- a/src/kiro-client.h +++ b/src/kiro-client.h @@ -83,8 +83,8 @@ int kiro_client_sync (KiroClient *client); void *kiro_client_get_memory (KiroClient *client); -size_t kior_client_get_memory_size (KiroClient *client); +size_t kiro_client_get_memory_size (KiroClient *client); G_END_DECLS -#endif //__KIRO_CLIENT_H \ No newline at end of file +#endif //__KIRO_CLIENT_H diff --git a/src/kiro-rdma.h b/src/kiro-rdma.h index 2ebbcf6..9a3cbe8 100644 --- a/src/kiro-rdma.h +++ b/src/kiro-rdma.h @@ -147,6 +147,8 @@ kiro_create_rdma_memory (struct ibv_pd *pd, size_t mem_size, int access) if (!krm->mem) krm->mem = krm->mr->addr; + krm->size = mem_size; + return krm; } @@ -216,4 +218,4 @@ kiro_destroy_connection (struct rdma_cm_id **conn) } -#endif //__KIRO_RDMA_H__ \ No newline at end of file +#endif //__KIRO_RDMA_H__ -- cgit v1.2.3