libvhost-user: introduce and use vu_has_protocol_feature()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 4 Sep 2019 06:50:21 +0000 (09:50 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Sep 2019 11:53:12 +0000 (07:53 -0400)
commiteeb39263aa9b05b4ac3f8d8e957958071834a7b6
treec028a5ce61df287e6e046d62e1d1dbc2abf0e65b
parent8726b70b449896f1211f869ec4f608904f027207
libvhost-user: introduce and use vu_has_protocol_feature()

This simplifies the various has_feature() checks, we already
have vu_has_feature() but it checks features, not protocol
features.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Message-Id: <20190904065021.1360-1-johannes@sipsolutions.net>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/libvhost-user/libvhost-user.c