Skip to main content

UNKNOWN

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

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

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 details)

Uploaded Source

File details

Details for the file sriovmng-0.1.0.tar.gz.

File metadata

  • Download URL: sriovmng-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sriovmng-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab77c6f3a7ff78653777efc015d6141826d70f341f4126a2fe454375f0066aa2
MD5 e2bff93a9fccc3fd2d97e4a973632729
BLAKE2b-256 271e749ce45ac737ef3a99250545f0a07775308be893dd22a53577e76f9526d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page