vhost: fix build with old kernels
authorMarcel Apfelbaum <marcel@redhat.com>
Tue, 3 Nov 2015 11:28:41 +0000 (13:28 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 3 Nov 2015 11:33:04 +0000 (12:33 +0100)
commit45c55d39c5ebb8f8e1e70401dd0492f6c935455b
treea7af87de874991b0c43a10996aacb16decfbc4f2
parentb5b0467ca8697e14ae533011d2696603202c04c3
vhost: fix build with old kernels

Commit 15e9ee6982a4822ce395fd597dd500a61ceafa7c
uses the VIRTIO_F_VERSION_1 macro existing only in newer kernels.

Fixed it by manually defining it for older kernels.

Fixes: 15e9ee6982a4 ("vhost: enable virtio 1.0")

Reported-by: Qian Xu <qian.q.xu@intel.com>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
lib/librte_vhost/rte_virtio_net.h