]> git.ipfire.org Git - thirdparty/libvirt.git/commit
interface: Add functions to get sriov PF/VF relationship of a net interface
authorRoopa Prabhu <roprabhu@cisco.com>
Tue, 16 Aug 2011 04:28:53 +0000 (21:28 -0700)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 16 Aug 2011 15:59:00 +0000 (11:59 -0400)
commitcd5544d412969cea87699c41c6980e5f1364fe3e
tree4350cb628b26ef819a0374bf148edfb71e2fa663
parent17d64cab16cb506fabbc0bdcc3994da5d0307005
interface: Add functions to get sriov PF/VF relationship of a net interface

This patch adds the following functions to get PF/VF relationship of an SRIOV
network interface:
ifaceIsVirtualFunction: Function to check if a network interface is a SRIOV VF
ifaceGetVirtualFunctionIndex: Function to get VF index if a network interface is a SRIOV VF
ifaceGetPhysicalFunction: Function to get the PF net interface name of a SRIOV VF net interface

Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: Christian Benvenuti <benve@cisco.com>
Signed-off-by: David Wang <dwang2@cisco.com>
src/util/interface.c
src/util/interface.h