]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: don't pass interface type into virNetDevBandwidthParse
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 29 Jan 2019 17:26:40 +0000 (17:26 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 18 Apr 2019 10:27:09 +0000 (11:27 +0100)
commite2c5f0f6cf1cc00a522953f1e6aae672b2ba9f9c
tree272b6b6ae626f3fe39073eef8c5f30057d89f043
parent9900da3c93b9f0dfdcd51c4d6cfc77a323c77fef
conf: don't pass interface type into virNetDevBandwidthParse

The virNetDevBandwidthParse method uses the interface type to decide
whether to allow use of the "floor" parameter. Using the interface
type is not convenient as callers may not have that available, but
still wish to allow use of "floor". Switch to an explicit boolean
to control its usage.

Reviewed-by: Laine Stump <laine@laine.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/domain_conf.c
src/conf/netdev_bandwidth_conf.c
src/conf/netdev_bandwidth_conf.h
src/conf/network_conf.c
tests/virnetdevbandwidthtest.c