]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetDevMacVLanTapSetup: Work around older systems
authorMichal Privoznik <mprivozn@redhat.com>
Sat, 12 Dec 2015 07:05:17 +0000 (08:05 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Sun, 13 Dec 2015 07:35:46 +0000 (08:35 +0100)
commitec93cc25ecdad100a535cb52c08f7eaa3004b960
tree59cd7cea75e88766a1fab3887a2ee29fd7f2b5ac
parent034e47c338b13a95cf02106a3af912c1c5f818d7
virNetDevMacVLanTapSetup: Work around older systems

Some older systems, e.g. RHEL-6 do not have IFF_MULTI_QUEUE flag
which we use to enable multiqueue feature. Therefore one gets the
following compile error there:

  CC     util/libvirt_util_la-virnetdevmacvlan.lo
util/virnetdevmacvlan.c: In function 'virNetDevMacVLanTapSetup':
util/virnetdevmacvlan.c:338: error: 'IFF_MULTI_QUEUE' undeclared (first use in this function)
util/virnetdevmacvlan.c:338: error: (Each undeclared identifier is reported only once
util/virnetdevmacvlan.c:338: error: for each function it appears in.)
make[3]: *** [util/libvirt_util_la-virnetdevmacvlan.lo] Error 1

So, whenever user wants us to enable the feature on such systems,
we will just throw a runtime error instead.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdevmacvlan.c