Skip to content

Rust API wrapping the `ibverbs` and `rdmacm` Remote Direct Memory Access (RDMA) library.

License

Notifications You must be signed in to change notification settings

phoenix-dataplane/rdma-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rdma-rs

Rust API wrapping the ibverbs and rdmacm Remote Direct Memory Access (RDMA) library.

TODO:

  • add docs to APIs
  • remove in function assertions and logs
  • add examples

To manually generate the binding, use this

~/.cargo/bin/bindgen \
	-o bindings.rs \
	--blocklist-type max_align_t \
	--blocklist-type ibv_wc \
	--no-prepend-enum-name \
	--bitfield-enum ibv_access_flags \
	--bitfield-enum ibv_qp_attr_mask \
	--bitfield-enum ibv_wc_flags \
	--bitfield-enum ibv_send_flags \
	--bitfield-enum ibv_port_cap_flags \
	--constified-enum-module ibv_qp_type \
	--constified-enum-module ibv_qp_state \
	--constified-enum-module ibv_port_state \
	--constified-enum-module ibv_wc_opcode \
	--constified-enum-module ibv_wr_opcode \
	--constified-enum-module ibv_wc_status \
	--constified-enum-module rdma_port_space \
	--constified-enum-module rdma_cm_event_type \
	src/rdma_verbs_wrapper.h -- -I/usr/include

Acknowledgement

This crate is developed based on rust-ibverbs.

About

Rust API wrapping the `ibverbs` and `rdmacm` Remote Direct Memory Access (RDMA) library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published