X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_vhost%2Fvhost.c;fp=lib%2Flibrte_vhost%2Fvhost.c;h=653152fc7d39a1a388dc49cdebb1a93d948e7d31;hb=02f62392ffcaf1617e0749fe3d6e0263c077ef79;hp=19c5a43a51b3e89b85aa8a1bdd82996c3c03592e;hpb=c665d9a231945181af0a6e6fbeae7f56657f964a;p=dpdk.git diff --git a/lib/librte_vhost/vhost.c b/lib/librte_vhost/vhost.c index 19c5a43a51..653152fc7d 100644 --- a/lib/librte_vhost/vhost.c +++ b/lib/librte_vhost/vhost.c @@ -272,7 +272,7 @@ rte_vhost_get_mtu(int vid, uint16_t *mtu) if (!(dev->flags & VIRTIO_DEV_READY)) return -EAGAIN; - if (!(dev->features & VIRTIO_NET_F_MTU)) + if (!(dev->features & (1ULL << VIRTIO_NET_F_MTU))) return -ENOTSUP; *mtu = dev->mtu;