]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: use virDeviceHostdevPCIDriverInfo in network and networkport objects
authorLaine Stump <laine@redhat.com>
Fri, 5 Jan 2024 01:12:51 +0000 (20:12 -0500)
committerLaine Stump <laine@redhat.com>
Mon, 8 Jan 2024 04:57:09 +0000 (23:57 -0500)
commit8bc3f010808f698c32fa53f4c55638cc97b4d255
tree9e85e34fd3569c6fa022f90e525925afe7a7fddf
parente04ca000bddca850ab0c607e94ca46f30b10c44f
conf: use virDeviceHostdevPCIDriverInfo in network and networkport objects

The next step in consolidating parsing/formatting of the <driver>
element of these objects using a common struct and common code. This
eliminates the virNetworkForwardDriverNameType enum which is nearly
identical to virDeviceHostdevPCIDriverName (the only non-identical bit
was just because they'd gotten out of sync over time) and replaces its
uses with a virDeviceHostdevPCIDriverInfo (which is a struct that
contains a virDeviceHostdevPCIDriverName).

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/domain_conf.c
src/conf/network_conf.c
src/conf/network_conf.h
src/conf/virnetworkportdef.c
src/conf/virnetworkportdef.h
src/network/bridge_driver.c