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

ibv_query_port_speed - query an RDMA port’s effective bandwidth in 100Mb/s granularity

#include <infiniband/verbs.h>
int ibv_query_port_speed(struct ibv_context *context, uint32_t port_num, uint64_t *port_speed);

ibv_query_port_speed() Queries the device of the context at the given port number for the effective bandwidth of the port in 100Mb/s granularity.

The device context.
The device port number which needs to be queried.
The effective bandwidth of port for device context in a granularity of 100 Mb/s

ibv_query_port_speed() Returns 0 on success, or the value of errno on failure (which indicates the failure reason)

port_speed pointer value is valid only when the function returns 0.

ibv_query_port(3)

Patrisious Haddad phaddad@nvidia.com Or Har-Toov ohartoov@nvidia.com

2025-10-19 libibverbs