vhost: fix MTU device feature check
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 29 Jun 2017 07:58:10 +0000 (09:58 +0200)
committerYuanhan Liu <yliu@fridaylinux.org>
Sat, 1 Jul 2017 23:39:29 +0000 (01:39 +0200)
commit02f62392ffcaf1617e0749fe3d6e0263c077ef79
tree3934af4f5922435869b3a751799184497358f234
parentc665d9a231945181af0a6e6fbeae7f56657f964a
vhost: fix MTU device feature check

The MTU feature support check has to be done against MTU
feature bit mask, and not bit position.

Fixes: 72e8543093df ("vhost: add API to get MTU value")
Cc: stable@dpdk.org
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/vhost.c