.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "IBV_RATE_TO_MBPS" "3" "2012-03-31" "libibverbs" "Libibverbs Programmer\[cq]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[R] .fi .SH DESCRIPTION .PP \f[B]ibv_rate_to_mbps()\f[R] converts the IB transmission rate enumeration \f[I]rate\f[R] to a number of Mbit/sec.\ For example, if \f[I]rate\f[R] is \f[B]IBV_RATE_5_GBPS\f[R], the value 5000 will be returned (5 Gbit/sec = 5000 Mbit/sec). .PP \f[B]mbps_to_ibv_rate()\f[R] converts the number of Mbit/sec \f[I]mult\f[R] to an IB transmission rate enumeration. For example, if \f[I]mult\f[R] is 5000, the rate enumeration \f[B]IBV_RATE_5_GBPS\f[R] will be returned. .SH RETURN VALUE .PP \f[B]ibv_rate_to_mbps()\f[R] returns the number of Mbit/sec. .PP \f[B]mbps_to_ibv_rate()\f[R] returns the enumeration representing the IB transmission rate. .SH SEE ALSO .PP \f[B]ibv_query_port\f[R](3) .SH AUTHOR .PP Dotan Barak