ibv_rate_to_mbps - Man Page

Name

ibv_rate_to_mbps — convert IB rate enumeration to Mbit/sec

mbps_to_ibv_rate — convert Mbit/sec to an IB rate enumeration

Synopsis

#include <infiniband/verbs.h>

int ibv_rate_to_mbps(enum ibv_rate rate);

enum ibv_rate mbps_to_ibv_rate(int mbps);

Description

ibv_rate_to_mbps() converts the IB transmission rate enumeration rate to a number of Mbit/sec. For example, if rate is IBV_RATE_5_GBPS, the value 5000 will be returned (5 Gbit/sec = 5000 Mbit/sec).

mbps_to_ibv_rate() converts the number of Mbit/sec mult to an IB transmission rate enumeration. For example, if mult is 5000, the rate enumeration IBV_RATE_5_GBPS will be returned.

Return Value

ibv_rate_to_mbps() returns the number of Mbit/sec.

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

See Also

ibv_query_port(3)

Author

Dotan Barak <dotanb@dev.mellanox.co.il>

Referenced By

The man page mbps_to_ibv_rate(3) is an alias of ibv_rate_to_mbps(3).

2012-03-31 Libibverbs Programmer’s Manual