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.

Files for sriovmng, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size sriovmng-0.1.0.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page