ibv_query_port_speed(3)

ibv_query_port_speed3

Query an rdma port’s effective bandwidth in 100mb/s granularity

Usage

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

Overview

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.

Arguments

context
  The device context.
port_num
  The device port number which needs to be queried.
port_speed

The effective bandwidth of port for device context in a granularity of 100 Mb/s

Return value

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

Notes

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

Author

Patrisious Haddad ⟨[email protected]⟩\c Or Har-Toov ⟨[email protected]⟩\c

From rdma-core 65.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.