Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rdma-mwe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
rdma-mwe
Commits
c59b704a
Commit
c59b704a
authored
Dec 20, 2023
by
Titouan Soulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move all header files to a single include directory
parent
76a885db
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
19 additions
and
16 deletions
+19
-16
.gitignore
.gitignore
+1
-1
Makefile
Makefile
+1
-1
README.md
README.md
+4
-1
common/hashtable.c
common/hashtable.c
+1
-1
example/rdma_standalone.c
example/rdma_standalone.c
+3
-3
include/common/hashtable.h
include/common/hashtable.h
+0
-0
include/libcapulet/net_udp.h
include/libcapulet/net_udp.h
+1
-1
include/libcapulet/rdma_ib.h
include/libcapulet/rdma_ib.h
+1
-1
include/libtrx/trx_rdma.h
include/libtrx/trx_rdma.h
+4
-4
libcapulet/net_udp.c
libcapulet/net_udp.c
+1
-1
libcapulet/rdma_ib.c
libcapulet/rdma_ib.c
+1
-1
libtrx/trx_rdma.c
libtrx/trx_rdma.c
+1
-1
No files found.
.gitignore
View file @
c59b704a
out/*
**/*.o
**/*.lo
libtrx/include/trx_driver.h
include/amarisoft/*
Makefile
View file @
c59b704a
CFLAGS
=
-Wall
-O3
INCLUDE_FLAGS
=
-I
common
/include
-Ilibcapulet
/include
-Ilibtrx
/include
INCLUDE_FLAGS
=
-I
.
/include
LIB_FLAGS
=
-lc
-libverbs
all
:
out/libcapulet.so out/libtrx_rdma.so out/rdma_standalone
...
...
README.md
View file @
c59b704a
...
...
@@ -31,8 +31,11 @@ make install
rdma_standalone
-c
192.168.16.10 < Makefile
```
The client should immediately display the content of
`README.md`
. The content of the
`Makefile`
got written to the server, but currently not displayed because the program is mono-threaded.
## TRX driver
In order to compile the TRX driver, you will need to provide your own
`trx_driver.h`
file from Amarisoft.
Copy the file in
`
libtrx/include`
and run
`make install
`
, the library driver will be located at
`out/libtrx_rdma.so`
.
Copy the file in
`
include/amarisoft`
and run
`make
`
, the library driver will be located at
`out/libtrx_rdma.so`
.
common/hashtable.c
View file @
c59b704a
#include "common
_
hashtable.h"
#include "common
/
hashtable.h"
// Non-cryptographic hashing algorithm optimized for strings
//
...
...
example/rdma_standalone.c
View file @
c59b704a
...
...
@@ -5,9 +5,9 @@
#include <time.h>
#include <unistd.h>
#include "
net_udp
.h"
#include "
rdma_ib
.h"
#include "
common_hashtable
.h"
#include "
common/hashtable
.h"
#include "
libcapulet/net_udp
.h"
#include "
libcapulet/rdma_ib
.h"
int
main
(
int
argc
,
char
*
argv
[])
{
struct
CapuletRdmaIbContext
rdma_ctx
;
...
...
common/include/common_
hashtable.h
→
include/common/
hashtable.h
View file @
c59b704a
File moved
libcapulet/include
/net_udp.h
→
include/libcapulet
/net_udp.h
View file @
c59b704a
...
...
@@ -12,7 +12,7 @@
#include <infiniband/verbs.h>
#include "common
_
hashtable.h"
#include "common
/
hashtable.h"
#define CAP_QP_INFO_PTYPE 0x01
#define CAP_MR_QUERY_PTYPE 0x10
...
...
libcapulet/include
/rdma_ib.h
→
include/libcapulet
/rdma_ib.h
View file @
c59b704a
...
...
@@ -6,7 +6,7 @@
#include <infiniband/verbs.h>
#include "net_udp.h"
#include "
libcapulet/
net_udp.h"
struct
CapuletRdmaIbContext
{
struct
ibv_context
*
ib_ctx
;
...
...
libtrx/include
/trx_rdma.h
→
include/libtrx
/trx_rdma.h
View file @
c59b704a
...
...
@@ -4,10 +4,10 @@
#include <stdint.h>
#include <stdio.h>
#include "
common_hashtable
.h"
#include "
rdma_ib
.h"
#include "
trx_driver
.h"
#include "net_udp.h"
#include "
amarisoft/trx_driver
.h"
#include "
common/hashtable
.h"
#include "
libcapulet/rdma_ib
.h"
#include "
libcapulet/
net_udp.h"
struct
SDRMetadata
{
uint8_t
version
;
...
...
libcapulet/net_udp.c
View file @
c59b704a
#include "net_udp.h"
#include "
libcapulet/
net_udp.h"
struct
CapuletNetUdpContext
*
capulet_net_udp_initialize
()
{
struct
CapuletNetUdpContext
*
ctx
;
...
...
libcapulet/rdma_ib.c
View file @
c59b704a
#include "
include
/rdma_ib.h"
#include "
libcapulet
/rdma_ib.h"
bool
capulet_rdma_ib_initialize_device
(
struct
CapuletRdmaIbContext
*
ctx
,
const
char
*
device_name
)
{
struct
ibv_device
**
dev_list
;
...
...
libtrx/trx_rdma.c
View file @
c59b704a
#include "trx_rdma.h"
#include "
libtrx/
trx_rdma.h"
static
int
trx_rdma_start
(
TRXState
*
s
,
const
TRXDriverParams
*
p
)
{
struct
SDRContext
*
sdr_context
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment