]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: remove useless checks for IFLA_VF_MAX
authorLaine Stump <laine@redhat.com>
Mon, 28 Sep 2020 19:53:48 +0000 (15:53 -0400)
committerLaine Stump <laine@redhat.com>
Thu, 1 Oct 2020 18:02:33 +0000 (14:02 -0400)
commit3d5748e87afb1cfacaa043c3c34a6865dd8874dc
treec68c92cb19a0b21352f0298dc6c7a618e18ddb00
parentbe0791039e15e3665193ca89929ab15d48340285
util: remove useless checks for IFLA_VF_MAX

IFLA_VF_MAX was introduced to the Linux kernel in 2.6.35, and was even
backported to the RHEL*6* 2.6.32 kernel downstream, so it is present
in all supported versions of all Linux distros that libvirt builds
on. Additionally, it can't be conditionally compiled out of a
kernel. There is no reason to conditionalize any piece of code on
presence of IFLA_VF_MAX - if the platform is Linux, it is supported.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdev.c