]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Changes to support portprofiles for hostdevs
authorRoopa Prabhu <roprabhu@cisco.com>
Tue, 6 Mar 2012 01:12:39 +0000 (17:12 -0800)
committerLaine Stump <laine@laine.org>
Tue, 6 Mar 2012 11:03:57 +0000 (06:03 -0500)
commit15bbfd8390b6d7ea51a471accc912f449529f68d
tree458c6164b2dcc6c948edbc112e8c64dfa94c6c81
parent5095bf06f1dc91063a36fe824ea2606b32ea8d29
util: Changes to support portprofiles for hostdevs

This patch includes the following changes to virnetdevmacvlan.c and
virnetdevvportprofile.c:

 - removes some netlink functions which are now available in
   virnetdev.c

 - Adds a vf argument to all port profile functions.

For 802.1Qbh devices, the port profile calls can use a vf argument if
passed by the caller. If the vf argument is -1 it will try to derive the vf
if the device passed is a virtual function.

For 802.1Qbg devices, This patch introduces a null check for the device
argument because during port profile assignment on a hostdev, this argument
can be null.

Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
src/qemu/qemu_migration.c
src/util/virnetdevmacvlan.c
src/util/virnetdevvportprofile.c
src/util/virnetdevvportprofile.h