.\" Automatically generated by Pandoc 2.2.1 .\" .TH "IBV_RATE_TO_MBPS" "3" "2012\-03\-31" "libibverbs" "Libibverbs Programmer's Manual" .hy .SH NAME .PP ibv_rate_to_mbps \- convert IB rate enumeration to Mbit/sec .PP mbps_to_ibv_rate \- convert Mbit/sec to an IB rate enumeration .SH SYNOPSIS .IP .nf \f[C] #include\ int\ ibv_rate_to_mbps(enum\ ibv_rate\ rate); enum\ ibv_rate\ mbps_to_ibv_rate(int\ mbps); \f[] .fi .SH DESCRIPTION .PP \f[B]ibv_rate_to_mbps()\f[] converts the IB transmission rate enumeration \f[I]rate\f[] to a number of Mbit/sec.\ For example, if \f[I]rate\f[] is \f[B]IBV_RATE_5_GBPS\f[], the value 5000 will be returned (5 Gbit/sec = 5000 Mbit/sec). .PP \f[B]mbps_to_ibv_rate()\f[] converts the number of Mbit/sec \f[I]mult\f[] to an IB transmission rate enumeration. For example, if \f[I]mult\f[] is 5000, the rate enumeration \f[B]IBV_RATE_5_GBPS\f[] will be returned. .SH RETURN VALUE .PP \f[B]ibv_rate_to_mbps()\f[] returns the number of Mbit/sec. .PP \f[B]mbps_to_ibv_rate()\f[] returns the enumeration representing the IB transmission rate. .SH SEE ALSO .PP \f[B]ibv_query_port\f[](3) .SH AUTHOR .PP Dotan Barak