diff options
author | Timo <timo.dritschler@kit.edu> | 2014-09-30 14:55:26 +0200 |
---|---|---|
committer | Timo <timo.dritschler@kit.edu> | 2014-09-30 14:55:26 +0200 |
commit | e71b75575658c435bc77c01ef098336c563af740 (patch) | |
tree | dd2d852820339cf84df216e62a76ebbda9d32fc0 /src | |
parent | 6ffe22890f901238318c68c38c099ccd62321a9a (diff) | |
download | kiro-e71b75575658c435bc77c01ef098336c563af740.tar.gz kiro-e71b75575658c435bc77c01ef098336c563af740.tar.bz2 kiro-e71b75575658c435bc77c01ef098336c563af740.tar.xz kiro-e71b75575658c435bc77c01ef098336c563af740.zip |
Fixed a bug in RDMA memory allocation (Size information was missing)
Added test-latency and test-bandwith tests
Diffstat (limited to 'src')
-rw-r--r-- | src/kiro-client.h | 4 | ||||
-rw-r--r-- | src/kiro-rdma.h | 4 |
2 files changed, 5 insertions, 3 deletions
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__ |