]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: match phys_port_id when converting PF-netdev to/from VF-netdev
authorLaine Stump <laine@laine.org>
Mon, 31 Jul 2017 05:55:49 +0000 (01:55 -0400)
committerLaine Stump <laine@laine.org>
Fri, 11 Aug 2017 22:55:25 +0000 (18:55 -0400)
commit39d136b67b2f677bf4fc67c37c00e1787a1d7440
treeb2998402b2a229ddf6f97606c3718c8b36f4ed88
parentb3b5aa75ed40d14bb96d3e7d2cff7356ccaab442
util: match phys_port_id when converting PF-netdev to/from VF-netdev

This patch updates functions in netdev.c to pay attention to
phys_port_id. It uses the new function virNetDevGetPhysPortID() to
learn the phys_port_id of a VF or PF, then sends that info to
virPCIGetNetName(), which has newly been modified to take an optional
phys_port_id.
src/util/virnetdev.c