]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetDevBridgeGet: Don't require users to virNetDevSetupControl
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 1 Jun 2016 09:52:53 +0000 (11:52 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 2 Jun 2016 09:35:29 +0000 (11:35 +0200)
commit263a88806ca9bcf25de5a7ac6bc3c40371950f01
tree4d9e4b6570a9ea5da1974c3a9918a5fda0254a23
parent93b59fcff60ee3e2ac3e67164b992d1335e9d0a2
virNetDevBridgeGet: Don't require users to virNetDevSetupControl

So far, this function has just three callers. Two of them call
virNetDevSetupControl to create a socket that we can then
optionally use for ioctl() to fetch data. However, querying sysfs
is preferred. Therefore it doesn't make much sense to require
users to set up the socket if they don't even know it will be
used in favour of sysfs. We can set up the socket iff we need to.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdevbridge.c