Documentation ¶
Index ¶
Constants ¶
View Source
const ( RdmaSysModeExclusive = "exclusive" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicOps ¶ added in v1.0.1
type BasicOps interface { // Equivalent to netlink.RdmaLinkByName(...) RdmaLinkByName(name string) (*netlink.RdmaLink, error) // Equivalent to netlink.RdmaLinkSetNsFd(...) RdmaLinkSetNsFd(link *netlink.RdmaLink, fd uint32) error // Equivalent to netlink.RdmaSystemGetNetnsMode(...) RdmaSystemGetNetnsMode() (string, error) // Equivalent to netlink.RdmaSystemSetNetnsMode(...) RdmaSystemSetNetnsMode(newMode string) error // Equivalent to rdmamap.GetRdmaDevicesForPcidev(...) GetRdmaDevicesForPcidev(pcidevName string) []string }
Interface to be used by RDMA manager for basic operations
type Manager ¶ added in v1.0.1
type Manager interface { // Move RDMA device from current network namespace to network namespace MoveRdmaDevToNs(rdmaDev string, netNs ns.NetNS) error // Get RDMA devices associated with the given PCI device in D:B:D.f format e.g 0000:04:00.0 GetRdmaDevsForPciDev(pciDev string) ([]string, error) // Get RDMA subsystem namespace awareness mode ["exclusive" | "shared"] GetSystemRdmaMode() (string, error) // Set RDMA subsystem namespace awareness mode ["exclusive" | "shared"] SetSystemRdmaMode(mode string) error }
func NewRdmaManager ¶
func NewRdmaManager() Manager
Click to show internal directories.
Click to hide internal directories.