]> xenbits.xensource.com Git - libvirt.git/commit
macvtap: Fix getPhysfn to get the PF of a direct attach network interface
authorRoopa Prabhu <roprabhu@cisco.com>
Tue, 16 Aug 2011 04:28:58 +0000 (21:28 -0700)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 16 Aug 2011 15:59:00 +0000 (11:59 -0400)
commit5abbf7b9581435506e94d87b702263922bbd4e96
tree0c7f974db4795713016c6a0f0d7e4354abe8e78c
parentcd5544d412969cea87699c41c6980e5f1364fe3e
macvtap: Fix getPhysfn to get the PF of a direct attach network interface

This patch renames getPhysfn to getPhysfnDev and adds code to get the
Physical function and Virtual Function index of the direct attach linkdev (if
the direct attach interface is a SRIOV VF). The idea is to send the port
profile message to a PF if the direct attach interface is a SRIOV VF.

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/macvtap.c