3 .TH IBV_RATE_TO_MULT 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
6 ibv_rate_to_mult \- convert IB rate enumeration to multiplier of 2.5 Gbit/sec
8 mult_to_ibv_rate \- convert multiplier of 2.5 Gbit/sec to an IB rate enumeration
11 .B #include <infiniband/verbs.h>
13 .BI "int ibv_rate_to_mult(enum ibv_rate " "rate" ");
15 .BI "enum ibv_rate mult_to_ibv_rate(int " "mult" ");
19 converts the IB transmission rate enumeration
21 to a multiple of 2.5 Gbit/sec (the base rate). For example, if
24 .BR IBV_RATE_5_GBPS\fR,
25 the value 2 will be returned (5 Gbit/sec = 2 * 2.5 Gbit/sec).
28 converts the multiplier value (of 2.5 Gbit/sec)
30 to an IB transmission rate enumeration. For example, if
32 is 2, the rate enumeration
38 returns the multiplier of the base rate 2.5 Gbit/sec.
41 returns the enumeration representing the IB transmission rate.
43 .BR ibv_query_port (3)
46 Dotan Barak <dotanb@mellanox.co.il>