]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: simplify check for WITH_MACVTAP
authorLaine Stump <laine@redhat.com>
Tue, 29 Sep 2020 13:56:18 +0000 (09:56 -0400)
committerLaine Stump <laine@redhat.com>
Thu, 1 Oct 2020 18:02:34 +0000 (14:02 -0400)
commit0cbce414e4f21c075da0000cfdc401fbb6daa419
tree47421f5b1d93a0bf51a0b8bbc79d9350f992bc00
parent4fd7c74e446baa91c00fa100036535b20c63fa26
build: simplify check for WITH_MACVTAP

macvtap support was added to the Linux kernel in 2.6.33. libvirt
checked for this by looking for MACVLAN_MODE_BRIDGE and IFLA_VF_MAX in
linux/if_link.h. This hasn't been necessary for a very long time, so
just gate on platform == 'linux' (and be sure to complain if someone
tries to enable it on a non-Linux platform).

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
meson.build