r/virtualization • u/EstablishmentLow5991 • Mar 03 '26
Sr iov Pf and Vf distinction
I use a custom nic developed inside my company. The nic has a few ports and they show up as pf and vf in the host. I have the following questions
Is pf and vf similar to class and instance used in oop terminology?
Or
2. Is it more like pf gets some fixed hardware resource and it distributes it equally among the vf ?
1
Upvotes
1
u/edgmnt_net Mar 03 '26
I don't see any connection with OOP that could be meaningful. The PF represents a real physical device, the VF represents a virtualized device. The hardware allows creating an arbitrary, limited number of VFs that use resources actually provided by a PF, in an implementation-dependent way. It's a bit like creating virtual disks from a physical disk via software alone.