Categorygithub.com/Mellanox/rdmamap
modulepackage
1.1.0
Repository: https://github.com/mellanox/rdmamap.git
Documentation: pkg.go.dev

# README

License Go Report Card Build Status Coverage Status

rdmamap

This is golang package that provides map of rdma device with its character and network devices.

It uses sysfs and netlink interfaces provided by kernel to perform this mapping.

Local build and test

You can use go get command:

go get github.com/Mellanox/rdmamap

Example:

package main

import (
    "fmt"
    "github.com/Mellanox/rdmamap"
)

func main() {
	rdmaDevices := rdmamap.GetRdmaDeviceList()
	fmt.Println("Devices: ", rdmaDevices)
  
	for _, dev := range rdmaDevices {
		charDevices := rdmamap.GetRdmaCharDevices(dev)
		fmt.Printf("Rdma device: = %s", dev)
		fmt.Println(" Char devices: = ", charDevices)
	}
}

# Functions

Get RDMA statistics of a docker container.
Gets a list of ports for a specified devicenolint:prealloc.
Returns a list of character device absolute path for a requested rdmaDeviceName.
Get RDMA device for the netdevice.
Returns a list of rdma device namesnolint:prealloc.
Get list of RDMA devices for an auxiliary device.
Get list of RDMA devices for a pci device.
Get RDMA sysfs starts from counter and hw_counters directory for a rdma device.
Get RDMA sysfs starts from counter and hw_counters directory for a requested port of a device.
Get RDMA Sysfs stats from hw_counters directory of a port of a rdma device Port number starts from 1.
Get RDMA Sysfs stats from counters directory of a port of a rdma device Port number starts from 1.
Returns true if rdma device exist for netdevice, else false.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint:stylecheck,golint.
nolint:stylecheck,golint.
No description provided by the author
No description provided by the author
No description provided by the author
nolint:stylecheck,golint.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author