]> git.ipfire.org Git - thirdparty/libvirt.git/commit
configure: fix check for DEVLINK_CMD_ESWITCH_GET
authorJán Tomko <jtomko@redhat.com>
Mon, 18 Sep 2017 17:21:47 +0000 (13:21 -0400)
committerJán Tomko <jtomko@redhat.com>
Tue, 19 Sep 2017 13:25:10 +0000 (15:25 +0200)
commitcdd6eb99c2f96a38cc3db938ad4e90012a9016c2
tree180cd9665a525ea463534bd2dc62d071075f1f16
parentd085197ce2e04417415af77e42a33c07fac1d6b4
configure: fix check for DEVLINK_CMD_ESWITCH_GET

Instead of checking for all possible constants that every
kernel header with devlink support should have (and defining
HAVE_DECL_DEVLINK as 1 if any of them is present due to the
way AC_CHECK_DECLS works), only check for DEVLINK_CMD_ESWITCH_GET.

This is the name of the constant since kernel 4.11. Between 4.8
and 4.11, the now deprecated spelling DEVLINK_CMD_ESWITCH_MODE_GET
was used.

Assume DEVLINK_ESWITCH_MODE_SWITCHDEV is available, since it was
introduced along with the deprecated spelling.
configure.ac
src/util/virnetdev.c