vhost: fix checking of device features
authorIvan Dyukov <i.dyukov@samsung.com>
Wed, 28 Jun 2017 12:40:31 +0000 (15:40 +0300)
committerYuanhan Liu <yliu@fridaylinux.org>
Sat, 1 Jul 2017 23:38:39 +0000 (01:38 +0200)
commitc665d9a231945181af0a6e6fbeae7f56657f964a
tree4babdc4c4ca820e4c6b673fe9a1184c79b8a9dfb
parent71afcefbd53e9f5a5b47158226b9b6eef3c32eda
vhost: fix checking of device features

To compare enabled features in current device we must use bit
mask instead of bit position.

Fixes: c843af3aa13e ("vhost: access header only if offloading is supported")
Cc: stable@dpdk.org
Signed-off-by: Ivan Dyukov <i.dyukov@samsung.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/virtio_net.c