RDMA_SET_OPTION(3) Librdmacm Programmer's Manual RDMA_SET_OPTION(3)
rdma_set_option - Set communication options for an rdma_cm_id.
#include <rdma/rdma_cma.h> int rdma_set_option (struct rdma_cm_id *id, int level, int optname, void *optval, size_t optlen);
id RDMA identifier. level Protocol level of the option to set. optname Name of the option, relative to the level, to set. optval Reference to the option data. The data is dependent on the level and optname. optlen The size of the %optval buffer.
Sets communication options for an rdma_cm_id. This call is used to override the default system settings. optname can be one of RDMA_OPTION_ID_TOS Specify the quality of service provided by a connection. The expected optlen is size of uint8_t. RDMA_OPTION_ID_REUSEADDR Bound the rdma_cm_id to a reuseable address. This will allow other users to bind to that same address. The expected optlen is size of int. RDMA_OPTION_ID_AFONLY Set IPV6_V6ONLY socket. The expected optlen is size of int. RDMA_OPTION_IB_PATH Set IB path record data. The expected optlen is size of struct ibv_path_data. RDMA_OPTION_ID_ACK_TIMEOUT Set QP ACK timeout. The value calculated according to the formula 4.096 * 2^(ack_timeout) usec.
Returns 0 on success, or -1 on error. If an error occurs, errno will be set to indicate the failure reason.
Option details may be found in the relevant header files.
This page is part of the rdma-core (RDMA Core Userspace Libraries and Daemons) project. Information about the project can be found at ⟨https://github.com/linux-rdma/rdma-core⟩. If you have a bug report for this manual page, send it to firstname.lastname@example.org. This page was obtained from the project's upstream Git repository ⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2021-06-20. (At that time, the date of the most recent commit that was found in the repository was 2021-06-16.) If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which is not part of the original manual page), send a mail to email@example.com librdmacm 2007-08-06 RDMA_SET_OPTION(3)
Pages that refer to this page: rdma_create_id(3), rdma_cm(7)