jaypipes / ghw

Go HardWare discovery/inspection library
Apache License 2.0
1.62k stars 174 forks source link

Grab information on VFs for SR-IOV PFs #92

Open jaypipes opened 5 years ago

jaypipes commented 5 years ago

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:

jaypipes commented 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

ffromani commented 3 years ago

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

ffromani commented 3 years ago

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.

jaypipes commented 3 years ago

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!

ffromani commented 3 years ago

first draft, RFC for API: https://github.com/jaypipes/ghw/pull/230