mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-04 20:15:19 +00:00
Fix macvtap detection by also checking for IFLA_VF_MAX
since this isn't available on older kernels such as Debian Squeeze's
2.6.32. This make --with-macvtap=check work as expected.
(cherry picked from commit a2996926e3
)
This commit is contained in:
parent
4ecd1d6983
commit
4ceabdf570
@ -2534,7 +2534,8 @@ AC_MSG_CHECKING([whether to compile with macvtap support])
|
||||
if test "$with_macvtap" != "no" ; then
|
||||
AC_TRY_COMPILE([ #include <sys/socket.h>
|
||||
#include <linux/rtnetlink.h> ],
|
||||
[ int x = MACVLAN_MODE_BRIDGE; ],
|
||||
[ int x = MACVLAN_MODE_BRIDGE;
|
||||
int y = IFLA_VF_MAX; ],
|
||||
[ with_macvtap=yes ],
|
||||
[ if test "$with_macvtap" = "yes" ; then
|
||||
AC_MSG_ERROR([Installed linux headers don't show support for macvtap device.])
|
||||
|
Loading…
Reference in New Issue
Block a user