Rdmamap Save

RDMA library for mapping associate netdevice and character devices

Project 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)
	}
}

Open Source Agenda is not affiliated with "Rdmamap" Project. README Source: Mellanox/rdmamap
Stars
54
Open Issues
3
Last Commit
8 months ago
Repository
License
Tags

Open Source Agenda Badge

Open Source Agenda Rating