]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: fixing wrong assumption that PF has to have netdev assigned
authorRadoslaw Biernacki <radoslaw.biernacki@linaro.org>
Tue, 22 Jan 2019 19:26:12 +0000 (12:26 -0700)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 23 Jan 2019 09:06:58 +0000 (10:06 +0100)
commit6452e2f5e1837bd753ee465e6607ed3c4f62b815
treea9f4b5045156aea3d5a16526f644c750cead56d2
parentfb01e1a44daea773cd53f275cad6f031506c20db
util: fixing wrong assumption that PF has to have netdev assigned

libvirt wrongly assumes that VF netdev has to have the
netdev assigned to PF. There is no such requirement in SRIOV standard.
This patch change the virNetDevSwitchdevFeature() function to deal
with SRIOV devices which does not have netdev on PF. Also corrects
one comment about PF netdev assumption.

One example of such devices is ThunderX VNIC.
By applying this change, VF device is used for virNetlinkCommand() as
it is the only netdev assigned to VNIC.

Signed-off-by: Radoslaw Biernacki <radoslaw.biernacki@linaro.org>
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdev.c