]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: new function virNetDevPFGetVF()
authorLaine Stump <laine@laine.org>
Thu, 2 Mar 2017 19:55:01 +0000 (14:55 -0500)
committerLaine Stump <laine@laine.org>
Fri, 24 Mar 2017 04:39:31 +0000 (00:39 -0400)
commit554253ad04463e0442030f4630f0a4a02613a595
tree3930152c254bb1db2c0be32e5949520db91061d1
parentf4ef3a71f8abc83771952604d309b39ca3ea64cf
util: new function virNetDevPFGetVF()

Given an SRIOV PF netdev name (e.g. "enp2s0f0") and VF#, this new
function returns the netdev name of the referenced VF device
(e.g. "enp2s11f6"), or NULL if the device isn't bound to a net driver.
src/libvirt_private.syms
src/util/virnetdev.c
src/util/virnetdev.h