vhost: fix build with old kernels
authorZhihong Wang <zhihong.wang@intel.com>
Wed, 31 Jan 2018 14:20:57 +0000 (09:20 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 11:11:13 +0000 (12:11 +0100)
commit704098fc478c0dbdd6144e64c8de2ff19d010dda
treece7d6fde494ffc49450bdf0a0529efdbb0f5cded
parent8545289a2912bdfab2c4ddf6cc5e134f72677b13
vhost: fix build with old kernels

This patch fixes compile failure with old kernels which have no
VIRTIO_F_ANY_LAYOUT defined.

Fixes: 5a8bb6e9020f ("vhost: claim to support any layout feature")

Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Tested-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_vhost/vhost.h