1IBV_RATE_TO_MULT(3)     Libibverbs Programmer's Manual     IBV_RATE_TO_MULT(3)
2
3
4

NAME

6       ibv_rate_to_mult  -  convert  IB  rate enumeration to multiplier of 2.5
7       Gbit/sec
8
9       mult_to_ibv_rate - convert multiplier of 2.5 Gbit/sec  to  an  IB  rate
10       enumeration
11

SYNOPSIS

13              #include <infiniband/verbs.h>
14
15              int ibv_rate_to_mult(enum ibv_rate rate);
16
17              enum ibv_rate mult_to_ibv_rate(int mult);
18

DESCRIPTION

20       ibv_rate_to_mult()  converts  the IB transmission rate enumeration rate
21       to a multiple of 2.5 Gbit/sec (the base rate).  For example, if rate is
22       IBV_RATE_5_GBPS,  the  value  2  will be returned (5 Gbit/sec = 2 * 2.5
23       Gbit/sec).
24
25       mult_to_ibv_rate() converts the multiplier value (of 2.5 Gbit/sec) mult
26       to an IB transmission rate enumeration.  For example, if mult is 2, the
27       rate enumeration IBV_RATE_5_GBPS will be returned.
28

RETURN VALUE

30       ibv_rate_to_mult()  returns  the  multiplier  of  the  base  rate   2.5
31       Gbit/sec.
32
33       mult_to_ibv_rate()  returns  the enumeration representing the IB transā€
34       mission rate.
35

SEE ALSO

37       ibv_query_port(3)
38

AUTHOR

40       Dotan Barak <dotanba@gmail.com>
41
42
43
44libibverbs                        2006-10-31               IBV_RATE_TO_MULT(3)
Impressum