Open jaypipes opened 5 years ago
Since I don't have any machines with SR-IOV enabled NICs, I'm probably going to need to get #66 going in order to "test" this functionality
Hi there, I can contribute here, depending on the decision we take in https://github.com/jaypipes/ghw/issues/66 (and also https://github.com/jaypipes/ghw/issues/201 :) )
I have access to boxes with low and high end SRIOV cards and I can provide snapshots (albeit most likely for low-end cards only) to enable others.
I have access to boxes with low and high end SRIOV cards and I can provide snapshots (albeit most likely for low-end cards only) to enable others.
That is awesome news, @fromanirh! Would be great to get contributions from you in this area!
first draft, RFC for API: https://github.com/jaypipes/ghw/pull/230
It's possible to retrieve the number of virtual functions (VFs) on an SR-IOV physical function (PF) on Linux by querying the following pseudo-files:
/sys/class/net/$NIC_NAME/device/sriov_numvfs
: The number of active VFs for the PF/sys/class/net/$NIC_NAME/device/sriov_totalvfs
: The maximum number of VFs the PF can accomodate