Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrToolNotInstalled = errors.New("no RDMA tools installed (ibv_devinfo/ibstat)")
ErrToolNotInstalled is returned by Collect when neither ibv_devinfo nor ibstat can be resolved on the host.
Functions ¶
This section is empty.
Types ¶
type Device ¶
Device describes a single RDMA host channel adapter.
func Merge ¶
Merge combines devinfo (primary) with ibstat, matching devices by Name and ports by Num. devinfo is authoritative; ibstat fills empty fields and contributes devices or ports that devinfo lacked.
func ParseDevinfo ¶
ParseDevinfo parses `ibv_devinfo -v` output into devices.
func ParseIbstat ¶
ParseIbstat parses `ibstat` output into devices.
type Port ¶
type Port struct {
Num int
State string // e.g. "PORT_ACTIVE" / "PORT_DOWN" (devinfo) or "Active" (ibstat)
Rate string // raw rate number as reported by ibstat, e.g. "200"
LinkLayer string // "InfiniBand" / "Ethernet"
}
Port describes a single RDMA device port.
type Result ¶
type Result struct {
Devices []Device
}
Result is the merged RDMA inventory.
Click to show internal directories.
Click to hide internal directories.