examples/vhost_blk: check features before inflight API
authorKeiichi Watanabe <keiichiw@chromium.org>
Mon, 22 Mar 2021 07:22:57 +0000 (16:22 +0900)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 31 Mar 2021 06:20:59 +0000 (08:20 +0200)
commit510f43fc5eb936a34ac38fc61fae871d1236a062
treee9d0b190bcf8f6b6e956731496e9ea76052acb65
parent790b1c3171110df4a70b1903a30bae90c57dec57
examples/vhost_blk: check features before inflight API

Avoid calling rte_vhost_get_vhost_ring_inflight() and
rte_vhost_get_vring_base_from_inflight() when
VHOST_USER_PROTOCOL_F_INFLIGHT_SHMFD is not set.

Signed-off-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost_blk/vhost_blk.c