Skip to main content


Project description

# sriovmng

## About

sriovmng is a tiny tool to make management of SR-IOV based devices a little
easier for those who have a hard time to remember all the necessary paths and
file name in the sysfs filesystem.

## Usage

### List PF devices

$ list

### Show details about PF devices

$ show p2p1
device: 0x10fb
sriov_numvfs: 7
vendor: 0x8086
vfs: 0000:05:10.0 0000:05:10.2 0000:05:10.4 0000:05:10.6 0000:05:11.0 0000:05:11.2 0000:05:11.4
pci_addr: 0000:05:00.0

* *device*, *vendor*: these are device and vendor IDs
* *sriov_numvfs*: displays current number of VFs for this devices
* *vfs*: PCI addresses of the VFs on this device
* *pci_addr*: PCI address of the device itself

### Getting interface name by PCI address

$ pci_addr_to_ifname 0000:05:10.2
0000:05:10.2: p2p1_1
$ pci_addr_to_ifname 0000:05:00.0
0000:05:00.0: p2p1

### Getting PCI address for an interface

$ ifname_to_pci_addr p2p1
p2p1: 0000:05:00.0
$ ifname_to_pci_addr p2p1_1
p2p1_1: 0000:05:10.2

### Setting number of VFs on a PF device

# numvfs p2p1 0

Note: root access is required to perform this operation.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sriovmng-0.1.0.tar.gz (7.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page