Detect and identify NIC SR-IOV capability

Bug #1572740 reported by Christian Reis on 2016-04-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Wishlist
Andres Rodriguez

Bug Description

NICs that present SR-IOV functionality have sysfs nodes that look like this:

   /sys/bus/pci/devices/0000\:07\:00.0/sriov_numvfs

That entry allows one to specify the number of virtual functions the device exposes.

More detail on this is at https://www.kernel.org/doc/Documentation/PCI/pci-iov-howto.txt

Upon commissioning MAAS should check whether each NIC has the sysfs sriov_numvfs entry and mark the NIC as SR-IOV capable.

A question is how to "mark the NIC" with this ability. Do we have extensible NIC metadata? Or is this just worth adding to the DB schema?

Related branches

Changed in maas:
milestone: none → next
status: New → Triaged
importance: Undecided → Wishlist
milestone: next → 2.1.0
Andres Rodriguez (andreserl) wrote :

Hi Kiko,

Do you have a system that reflects this? I was looking at a system with SR-IOV and couldnt; fine any references to sriov_numvfs

Andres Rodriguez (andreserl) wrote :

actually, nevermind, found them in:

/sys/devices/pci0000:00/0000:00:03.0/0000:08:00.0/sriov_numvfs

Andres Rodriguez (andreserl) wrote :

also:

net/eth5/phys_port_id:7cfe900300b725a1
net/eth5/address:7c:fe:90:b7:25:a1
net/eth4/phys_port_id:7cfe900300b725a0
net/eth4/address:7c:fe:90:b7:25:a0

Andres Rodriguez (andreserl) wrote :

root@velie:/sys/devices/pci0000:00/0000:00:03.0/0000:08:00.0# grep -sr 7c *
net/eth5/phys_port_id:7cfe900300b725a1
net/eth5/address:7c:fe:90:b7:25:a1
net/eth4/phys_port_id:7cfe900300b725a0
net/eth4/address:7c:fe:90:b7:25:a0

Changed in maas:
assignee: nobody → Newell Jensen (newell-jensen)
Changed in maas:
milestone: 2.1.0 → 2.0.0
assignee: Newell Jensen (newell-jensen) → Andres Rodriguez (andreserl)
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers