sys-fabric/
libibmad

OpenIB library provides the API for use interfacing with IB management programs

https://www.openfabrics.org/