1RDMA_SET_OPTION(3)       Librdmacm Programmer's Manual      RDMA_SET_OPTION(3)
2
3
4

NAME

6       rdma_set_option - Set communication options for an rdma_cm_id.
7

SYNOPSIS

9       #include <rdma/rdma_cma.h>
10
11       int  rdma_set_option  (struct  rdma_cm_id  *id, int level, int optname,
12       void *optval, size_t optlen);
13

ARGUMENTS

15       id          RDMA identifier.
16
17       level       Protocol level of the option to set.
18
19       optname     Name of the option, relative to the level, to set.
20
21       optval      Reference to the option data.  The data is dependent on the
22                   level and optname.
23
24       optlen      The size of the %optval buffer.
25

DESCRIPTION

27       Sets  communication  options  for  an rdma_cm_id.  This call is used to
28       override the default system settings.
29
30       optname can be one of
31
32       RDMA_OPTION_ID_TOS
33                   Specify the quality of service provided  by  a  connection.
34                   The expected optlen is size of uint8_t.
35
36       RDMA_OPTION_ID_REUSEADDR
37                   Bound  the  rdma_cm_id  to  a  reuseable address. This will
38                   allow other users  to  bind  to  that  same  address.   The
39                   expected optlen is size of int.
40
41       RDMA_OPTION_ID_AFONLY
42                   Set  IPV6_V6ONLY  socket.   The  expected optlen is size of
43                   int.
44
45       RDMA_OPTION_IB_PATH
46                   Set IB path record data.  The expected optlen  is  size  of
47                   struct ibv_path_data[].
48
49       RDMA_OPTION_ID_ACK_TIMEOUT
50                   Set  QP ACK timeout.  The value calculated according to the
51                   formula 4.096 * 2^(ack_timeout) usec.
52

RETURN VALUE

54       Returns 0 on success, or -1 on error.  If an error occurs,  errno  will
55       be set to indicate the failure reason.
56

NOTES

58       Option details may be found in the relevant header files.
59

SEE ALSO

61       rdma_create_id(3)
62
63
64
65librdmacm                         2007-08-06                RDMA_SET_OPTION(3)
Impressum