Skip to content

crazyguitar/RDMA-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RDMA programming example

BSD license

Send 2 numbers to server then send back the sum

System required:

RDMA capable NIC, OFED driver with libverbs and librdmacm.

How to use:

Git clone this repository at both client and server

# git clone https://github.com/w180112/RDMA-example.git

Set iptables to make UDP port 4791 open

On client side,

# gcc -o client rdma_write_client.c -lrdmacm -libverbs
# ./client <servername or ip> <val1> <val2>

e.g.

# ./client 192.168.0.168 123 456

On server side,

# gcc -o server rdma_write_server.c -lrdmacm -libverbs
# ./server

Test environment

  1. Mellanox Connectx-4 Lx with SRIOV enable
  2. Rocky Linux 9.2, with kernel 5.14.0-284.11.1.el9_2.x86_64

About

RDMA programming example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%