---
name: "ibv_rate_to_mult"
section: "3"
platform: "linux"
package: "rdma-core"
version: "65.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/ibv_rate_to_mult"
---

# ibv\_rate\_to\_mult(3)

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

## NAME

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

-

  ```
  #include <infiniband/verbs.h>
  int ibv_rate_to_mult(enum ibv_rate rate);
  enum ibv_rate mult_to_ibv_rate(int mult);
  ```

## DESCRIPTION

**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

**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

[**ibv\_query\_port**(3)](/ibv_query_port/3.md)

## AUTHOR

Dotan Barak ⟨dotanba@gmail.com⟩\\c
