Skip to main content
# 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

```
$ sriovmng.py list
p2p1
p2p2
p5p1
p5p2
$
```

### Show details about PF devices

```
$ sriovmng.py 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

```
$ sriovmng.py pci_addr_to_ifname 0000:05:10.2
0000:05:10.2: p2p1_1
$ sriovmng.py pci_addr_to_ifname 0000:05:00.0
0000:05:00.0: p2p1
$
```

### Getting PCI address for an interface

```
$ sriovmng.py ifname_to_pci_addr p2p1
p2p1: 0000:05:00.0
$ sriovmng.py ifname_to_pci_addr p2p1_1
p2p1_1: 0000:05:10.2
$
```

### Setting number of VFs on a PF device

```
# sriovmng.py numvfs p2p1 0
#
```

Note: root access is required to perform this operation.

Metadata

Release files for sriovmng 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sriovmng 0.1.0
File Size Uploaded
sriovmng-0.1.0.tar.gz 7.5 kB Details

Release files / sriovmng-0.1.0.tar.gz

Download URL sriovmng-0.1.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ab77c6f3a7ff78653777efc015d6141826d70f341f4126a2fe454375f0066aa2
BLAKE2b-256 checksum
How to use checksums
271e749ce45ac737ef3a99250545f0a07775308be893dd22a53577e76f9526d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page