ibv_rate_to_mult(3) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | SEE ALSO | AUTHOR | COLOPHON

IBV_RATE_TO_MULT(3)   Libibverbs Programmer’s Manual  IBV_RATE_TO_MULT(3)

NAME         top

       ibv_rate_to_mult - convert IB rate enumeration to multiplier of
       2.5 Gbit/sec

       mult_to_ibv_rate - convert multiplier of 2.5 Gbit/sec to an IB
       rate enumeration

SYNOPSIS         top

              #include <infiniband/verbs.h>

              int ibv_rate_to_mult(enum ibv_rate rate);

              enum ibv_rate mult_to_ibv_rate(int mult);

DESCRIPTION         top

       ibv_rate_to_mult() converts the IB transmission rate enumeration
       rate to a multiple of 2.5 Gbit/sec (the base rate).  For example,
       if rate is IBV_RATE_5_GBPS, the value 2 will be returned (5
       Gbit/sec = 2 * 2.5 Gbit/sec).

       mult_to_ibv_rate() converts the multiplier value (of 2.5 Gbit/sec)
       mult to an IB transmission rate enumeration.  For example, if mult
       is 2, the rate enumeration IBV_RATE_5_GBPS will be returned.

RETURN VALUE         top

       ibv_rate_to_mult() returns the multiplier of the base rate 2.5
       Gbit/sec.

       mult_to_ibv_rate() returns the enumeration representing the IB
       transmission rate.

SEE ALSO         top

       ibv_query_port(3)

AUTHOR         top

       Dotan Barak ⟨dotanba@gmail.com⟩

COLOPHON         top

       This page is part of the rdma-core (RDMA Core Userspace Libraries
       and Daemons) project.  Information about the project can be found
       at ⟨https://github.com/linux-rdma/rdma-core⟩.  If you have a bug
       report for this manual page, send it to
       linux-rdma@vger.kernel.org.  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2025-08-11.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2025-08-04.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there is
       a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       man-pages@man7.org

libibverbs                      2006-10-31            IBV_RATE_TO_MULT(3)