vhost: fix inflight resubmit check
authorJin Yu <jin.yu@intel.com>
Wed, 25 Dec 2019 14:18:35 +0000 (22:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:13 +0000 (12:42 +0100)
commitc47edd040a6a409de6bc86a31f44e86e5fa55b19
treea13076a99c053b436457bc0599836a97a5a97d8d
parentf1ad96fac7fefb0266d1278f0ff9ce985c4266fb
vhost: fix inflight resubmit check

The frontend may not send the get_inflight_fd and
set_inflight_fd although we negotiate the protocol
feature. When we meet this situation just return OK.

Fixes: ad0a4ae491fe ("vhost: checkout resubmit inflight information")
Cc: stable@dpdk.org
Signed-off-by: Jin Yu <jin.yu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c