.\" Automatically generated by Pandoc 2.0.6
.\"
.TH "ibv_query_port_speed" "3" "2025\-10\-19" "libibverbs" "Libibverbs Programmer's Manual"
.hy
.SH NAME
.PP
ibv_query_port_speed \- query an RDMA port'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[]
.fi
.SH DESCRIPTION
.PP
\f[B]ibv_query_port_speed()\f[] 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
.B \f[I]context\f[]
.IP
.nf
\f[C]
The\ device\ context.
\f[]
.fi
.RS
.RE
.TP
.B \f[I]port_num\f[]
.IP
.nf
\f[C]
The\ device\ port\ number\ which\ needs\ to\ be\ queried.
\f[]
.fi
.RS
.RE
.TP
.B \f[I]port_speed\f[]
The effective bandwidth of port for device context in a granularity of
100 Mb/s
.RS
.RE
.SH RETURN VALUE
.PP
\f[B]ibv_query_port_speed()\f[] 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[](3)
.SH AUTHOR
.PP
Patrisious Haddad <phaddad@nvidia.com> Or Har\-Toov
<ohartoov@nvidia.com>
