IBV_RATE_TO_MBPS(3)
โจ ibv_rate_to_mbps(3) โจ
okay so bestie, this is the libibverbs programmer's manual page for ibv_rate_to_mbps and mbps_to_ibv_rate โ two lil functions that literally just translate between the IB rate enumeration and plain old Mbit/sec ๐
๐ธ SYNOPSIS ๐ธ
like, here's the vibe:
#include <infiniband/verbs.h>
int ibv_rate_to_mbps(enum ibv_rate rate);
enum ibv_rate mbps_to_ibv_rate(int mbps);
๐ฆ DESCRIPTION ๐ฆ
okay so first up, ibv_rate_to_mbps() โ it takes that IB transmission rate enumeration (rate) and converts it into a number of Mbit/sec. fr fr, watch this: if rate is IBV_RATE_5_GBPS, you get 5000 back (because 5 Gbit/sec = 5000 Mbit/sec, math is mathing ๐งฎโจ).
and then mbps_to_ibv_rate() is the reverse bestie โ it takes a number of Mbit/sec (mult) and gives you back the IB transmission rate enumeration. so if mult is 5000, congrats, you get IBV_RATE_5_GBPS returned to you ๐
๐ RETURN VALUE ๐
ibv_rate_to_mbps()โ returns the number of Mbit/sec.mbps_to_ibv_rate()โ returns the enumeration representing the IB transmission rate.
๐ SEE ALSO ๐
ibv_query_port(3) โ go check it out, iykyk ๐
๐ AUTHOR ๐
Dotan Barak <dotanb@dev.mellanox.co.il> โ thank you for your service ๐ซถ
mwah ๐ that's the whole page bestie, no cap. this was libibverbs, dated 2012-03-31 โ iconic behavior, periodt โจ๐๐ฆ
๐ฆ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 ยท GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 ยท GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 ยท GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 ยท GPLv2 or BSD
- ubuntu jammy: libibverbs-dev 39.0-1 ยท BSD-MIT OR GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms