.\" Automatically generated by Pandoc 1.16.0.2
.\"
.TH "IBV_RATE_TO_MULT" "3" "2006\-10\-31" "libibverbs" "Libibverbs Programmer\[aq]s Manual"
.hy
.SH NAME
.PP
ibv_rate_to_mult \- convert IB rate enumeration to multiplier of 2.5
Gbit/sec
.PP
mult_to_ibv_rate \- convert multiplier of 2.5 Gbit/sec to an IB rate
enumeration
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <infiniband/verbs.h>

int\ ibv_rate_to_mult(enum\ ibv_rate\ rate);

enum\ ibv_rate\ mult_to_ibv_rate(int\ mult);
\f[]
.fi
.SH DESCRIPTION
.PP
\f[B]ibv_rate_to_mult()\f[] converts the IB transmission rate
enumeration \f[I]rate\f[] to a multiple of 2.5 Gbit/sec (the base rate).
For example, if \f[I]rate\f[] is \f[B]IBV_RATE_5_GBPS\f[], the value 2
will be returned (5 Gbit/sec = 2 * 2.5 Gbit/sec).
.PP
\f[B]mult_to_ibv_rate()\f[] converts the multiplier value (of 2.5
Gbit/sec) \f[I]mult\f[] to an IB transmission rate enumeration.
For example, if \f[I]mult\f[] is 2, the rate enumeration
\f[B]IBV_RATE_5_GBPS\f[] will be returned.
.SH RETURN VALUE
.PP
\f[B]ibv_rate_to_mult()\f[] returns the multiplier of the base rate 2.5
Gbit/sec.
.PP
\f[B]mult_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 <dotanba@gmail.com>
