Skip to content

Posts under Programming Category

When one wishes to stop the outstanding Work Requests from being processed, flushing the Work Queues may be useful. The most common reason for doing this is to reclaim the memory buffers that the Work Requests refer to. Another reason...

There are many code samples on the internet that explain how to send messages using the SEND operation over Reliable Connected (RC) QP. In this post I will explain how to convert the code from this kind of example to...

RDMA is used in many places, mainly because of the high performance that it allows to achieve. In this post, I will provide tips and tricks on how to optimize RDMA code in several aspects. General tips Avoid using control...

When writing a new RDMA application (just like when writing a new application over sockets), one should decide which QP type he should work with. In this post, I will describe in detail the characteristics of each transport type. In...

const char *ibv_wc_status_str(enum ibv_wc_status status);const char *ibv_wc_status_str(enum ibv_wc_status status); Description ibv_wc_status_str() returns a string that describes a Work Completion status enumerated value. Parameters Name Direction Description status in The Work Completion status that its string description is requested Return Values...

const char *ibv_event_type_str(enum ibv_event_type event);const char *ibv_event_type_str(enum ibv_event_type event); Description ibv_event_type_str() returns a string that describes an asynchronous event type enumerated value. Parameters Name Direction Description event in The asynchronous event type that its string description is requested Return Values...

const char *ibv_port_state_str(enum ibv_port_state port_state);const char *ibv_port_state_str(enum ibv_port_state port_state); Description ibv_port_state_str() returns a string that describes a logical port state enumerated value. Parameters Name Direction Description port_state in The logical port state that its string description is requested Return Values...

const char *ibv_node_type_str(enum ibv_node_type node_type);const char *ibv_node_type_str(enum ibv_node_type node_type); Description ibv_node_type_str() returns a string that describes a node type enumerated value. Parameters Name Direction Description node_type in The node type that its string description is requested Return Values Value Description...

enum ibv_rate mult_to_ibv_rate(int mult);enum ibv_rate mult_to_ibv_rate(int mult); Description mult_to_ibv_rate() converts a multiplier value of 2.5 Gbit/sec to an InfiniBand transmission rate enumeration value. For example, if mult is 2, the rate enumeration IBV_RATE_5_GBPS will be returned. Parameters Name Direction Description...

int ibv_rate_to_mult(enum ibv_rate rate);int ibv_rate_to_mult(enum ibv_rate rate); Description ibv_rate_to_mult() converts an InfiniBand transmission enumeration rate to a multiple of 2.5 Gbit/sec (the base rate). For example, if rate is IBV_RATE_5_GBPS, the value 2 will be returned (5 Gbit/sec = 2...