.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "ibv_query_port_speed" "3" "2025-10-19" "libibverbs" "Libibverbs Programmer\[cq]s Manual"
.hy
.SH NAME
.PP
ibv_query_port_speed - query an RDMA port\[cq]s effective bandwidth in
100Mb/s granularity
.SH SYNOPSIS
.IP
.nf
\f[C]
#include <infiniband/verbs.h>

int ibv_query_port_speed(struct ibv_context *context, uint32_t port_num, uint64_t *port_speed);
\f[R]
.fi
.SH DESCRIPTION
.PP
\f[B]ibv_query_port_speed()\f[R] Queries the device of the context at
the given port number for the effective bandwidth of the port in 100Mb/s
granularity.
.SH ARGUMENTS
.TP
\f[I]context\f[R]
.IP
.nf
\f[C]
The device context.
\f[R]
.fi
.TP
\f[I]port_num\f[R]
.IP
.nf
\f[C]
The device port number which needs to be queried.
\f[R]
.fi
.TP
\f[I]port_speed\f[R]
The effective bandwidth of port for device context in a granularity of
100 Mb/s
.SH RETURN VALUE
.PP
\f[B]ibv_query_port_speed()\f[R] Returns 0 on success, or the value of
errno on failure (which indicates the failure reason)
.SH NOTES
.PP
port_speed pointer value is valid only when the function returns 0.
.SH SEE ALSO
.PP
\f[B]ibv_query_port\f[R](3)
.SH AUTHOR
.PP
Patrisious Haddad <phaddad@nvidia.com> Or Har-Toov <ohartoov@nvidia.com>
