]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: virnetdevtap: stats: fix txdrop on FreeBSD
authorJán Tomko <jtomko@redhat.com>
Tue, 1 Sep 2020 20:56:37 +0000 (22:56 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 3 Sep 2020 18:25:07 +0000 (20:25 +0200)
commitebbf8ebe4fa6f9d43b40673f0f2dad6bf50e2085
treeee03e2c4b609514eca55777b93beb21a0f1415e8
parent16317c2b594e291270c55d8e484d79eae70ffbdf
util: virnetdevtap: stats: fix txdrop on FreeBSD

For older FreeBSD, we needed an ifdef guard to use
if_data.ifi_oqdrops, which was introduced by:

commit 61bbdbb94ce3e2f5e969c9bddb443427db07bf61
    Implement interface stats for BSD

But when we dropped the check because we deprecated
building on FreeBSD-10 in:

commit 83131d9714db7ee77ab220186b6b0d8b6c22b09e
    configure: drop check for unsupported FreeBSD

We started building the wrong side of the ifdef.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 83131d9714db7ee77ab220186b6b0d8b6c22b09e
Reviewed-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
src/util/virnetdevtap.c