'xlocale.h',
]
-if host_machine.system() == 'linux'
- # check for DEVLINK_CMD_ESWITCH_GET
- headers += 'linux/devlink.h'
-endif
-
if host_machine.system() == 'freebsd'
headers += 'libutil.h'
endif
if host_machine.system() == 'linux'
symbols += [
- # check for DEVLINK_CMD_ESWITCH_GET
- # Assume DEVLINK_ESWITCH_MODE_SWITCHDEV is also available, as it was
- # introudced in kernel 4.8 along with the original spelling of this
- # constant (DEVLINK_CMD_ESWITCH_MODE_GET, not supported by libvirt).
- [ 'linux/devlink.h', 'DEVLINK_CMD_ESWITCH_GET' ],
-
# check for VHOST_VSOCK_SET_GUEST_CID
[ 'linux/vhost.h', 'VHOST_VSOCK_SET_GUEST_CID' ],
# include <linux/if_vlan.h>
# include <linux/types.h>
# include <linux/ethtool.h>
+# include <linux/devlink.h>
# define VIR_NETDEV_FAMILY AF_UNIX
#elif defined(WITH_STRUCT_IFREQ) && defined(AF_LOCAL)
# define VIR_NETDEV_FAMILY AF_LOCAL
# include <net/if_dl.h>
#endif
-#if WITH_LINUX_DEVLINK_H
-# include <linux/devlink.h>
-#endif
#ifndef IFNAMSIZ
# define IFNAMSIZ 16
}
-# if defined(WITH_LIBNL) && WITH_DECL_DEVLINK_CMD_ESWITCH_GET
+# if defined(WITH_LIBNL)
/**
* virNetDevGetFamilyId: