vhost: fix silent queue enabling with legacy guests
authorIlya Maximets <i.maximets@samsung.com>
Fri, 12 Apr 2019 13:09:49 +0000 (16:09 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:54 +0000 (14:51 +0200)
commit966027b4b3a3e1059bf31ca07340914f6b8bb53a
treedee017033164d9079177e16ffa88208f490b465e
parent2344395df2e944683df87b1a47f8b64eea050d2b
vhost: fix silent queue enabling with legacy guests

vhost should notify the application in case of all vring state changes.

In general, application should not care about negotiation of
VHOST_USER_F_PROTOCOL_FEATURES. Protocol details like this should
be hidden by the vhost library.

With this patch applications like OVS will be able to assume that
all vrings disabled by default and only process 'vring_state_changed'
events.

Fixes: 321203a54ba7 ("vhost: enable rings at the right time")
Cc: stable@dpdk.org
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c