vhost: fix build with kernel < 3.5
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 8 Mar 2016 08:51:21 +0000 (16:51 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 11 Mar 2016 15:46:18 +0000 (16:46 +0100)
commit6fe390eed0f0aae9479f9cdbe4f4bb46c27aef63
treed8a750b34126859307dce3e5f53248e034b73922
parentb346ed47d63d28a61f7a44ffcd60ff6ec16c0744
vhost: fix build with kernel < 3.5

VIRTIO_NET_F_GUEST_ANNOUNCE is a new feature introduced since kernel
v3.5. For older kernels (or more precisely, old distributions), we
could simply define it manually, to fix the "macro not defined" error.

Fixes: d293dac8f30e ("vhost: claim support of guest announce")

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/rte_virtio_net.h