1IBV_RATE_TO_MBPS(3) Libibverbs Programmer's Manual IBV_RATE_TO_MBPS(3)
2
3
4
6 ibv_rate_to_mbps - convert IB rate enumeration to Mbit/sec
7
8 mbps_to_ibv_rate - convert Mbit/sec to an IB rate enumeration
9
11 #include <infiniband/verbs.h>
12
13 int ibv_rate_to_mbps(enum ibv_rate rate);
14
15 enum ibv_rate mbps_to_ibv_rate(int mbps);
16
18 ibv_rate_to_mbps() converts the IB transmission rate enumeration rate
19 to a number of Mbit/sec. For example, if rate is IBV_RATE_5_GBPS, the
20 value 5000 will be returned (5 Gbit/sec = 5000 Mbit/sec).
21
22 mbps_to_ibv_rate() converts the number of Mbit/sec mult to an IB trans‐
23 mission rate enumeration. For example, if mult is 5000, the rate enu‐
24 meration IBV_RATE_5_GBPS will be returned.
25
27 ibv_rate_to_mbps() returns the number of Mbit/sec.
28
29 mbps_to_ibv_rate() returns the enumeration representing the IB trans‐
30 mission rate.
31
33 ibv_query_port(3)
34
36 Dotan Barak <dotanb@dev.mellanox.co.il>
37
38
39
40libibverbs 2012-03-31 IBV_RATE_TO_MBPS(3)