]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Added Function virNetDevGetVirtualFunctions
authorShradha Shah <sshah@solarflare.com>
Wed, 14 Dec 2011 10:50:14 +0000 (10:50 +0000)
committerEric Blake <eblake@redhat.com>
Wed, 11 Jan 2012 20:01:16 +0000 (13:01 -0700)
commit3a0c717b9eb4c1f4071eede43db4a83fab761b22
tree498be070ba5e7b4a71977aaa9118d42f550740a3
parentf19338c66cc9f97297f723b4b4eba7e1789a5525
Added Function virNetDevGetVirtualFunctions

This functions enables us to get the Virtual Functions attached to
a Physical function given the name of a SR-IOV physical functio.

In order to accomplish the task, added a getter function pciGetDeviceAddrString
to get the BDF of the Virtual Function in a char array.
src/util/pci.c
src/util/pci.h
src/util/virnetdev.c
src/util/virnetdev.h