ibv_query_port_speed(3) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | ARGUMENTS | RETURN VALUE | NOTES | SEE ALSO | AUTHOR | COLOPHON

ibv_que...t_speed(3)  Libibverbs Programmer’s Manual ibv_que...t_speed(3)

NAME         top

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

SYNOPSIS         top

              #include <infiniband/verbs.h>

              int ibv_query_port_speed(struct ibv_context *context, uint32_t port_num, uint64_t *port_speed);

DESCRIPTION         top

       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         top

       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         top

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

NOTES         top

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

SEE ALSO         top

       ibv_query_port(3)

AUTHOR         top

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

COLOPHON         top

       This page is part of the rdma-core (RDMA Core Userspace Libraries
       and Daemons) project.  Information about the project can be found
       at ⟨https://github.com/linux-rdma/rdma-core⟩.  If you have a bug
       report for this manual page, send it to
       linux-rdma@vger.kernel.org.  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2026-01-16.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2026-01-15.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there is
       a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       man-pages@man7.org

libibverbs                      2025-10-19           ibv_que...t_speed(3)