Debian Codegraph @

libibverbs/man/ibv_rate_to_mbps.3.md

raw symbols SCIP
1 ---
2 date: 2012-03-31
3 footer: libibverbs
4 header: "Libibverbs Programmer's Manual"
5 layout: page
6 license: 'Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md'
7 section: 3
8 title: IBV_RATE_TO_MBPS
9 ---
10
11 # NAME
12
13 ibv_rate_to_mbps - convert IB rate enumeration to Mbit/sec
14
15 mbps_to_ibv_rate - convert Mbit/sec to an IB rate enumeration
16
17 # SYNOPSIS
18
19 ```c
20 #include <infiniband/verbs.h>
21
22 int ibv_rate_to_mbps(enum ibv_rate rate);
23
24 enum ibv_rate mbps_to_ibv_rate(int mbps);
25 ```
26
27 # DESCRIPTION
28
29 **ibv_rate_to_mbps()** converts the IB transmission rate enumeration *rate* to
30 a number of Mbit/sec. For example, if *rate* is **IBV_RATE_5_GBPS**, the
31 value 5000 will be returned (5 Gbit/sec = 5000 Mbit/sec).
32
33 **mbps_to_ibv_rate()** converts the number of Mbit/sec *mult* to an IB
34 transmission rate enumeration. For example, if *mult* is 5000, the rate
35 enumeration **IBV_RATE_5_GBPS** will be returned.
36
37 # RETURN VALUE
38
39 **ibv_rate_to_mbps()** returns the number of Mbit/sec.
40
41 **mbps_to_ibv_rate()** returns the enumeration representing the IB
42 transmission rate.
43
44 # SEE ALSO
45
46 **ibv_query_port**(3)
47
48 # AUTHOR
49
50 Dotan Barak <[email protected]>