vhost: fix redundant vring status change notification
authorJiayu Hu <jiayu.hu@intel.com>
Tue, 20 Apr 2021 08:57:45 +0000 (04:57 -0400)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 28 Apr 2021 01:52:44 +0000 (03:52 +0200)
commitc94c9f3152a37fb31553e410ab7fd06f23802c71
tree3754883ddf03804dbe376cd6372023ba1d2e306b
parent0090535f7ad427a0b12f302e84f230db508d4b59
vhost: fix redundant vring status change notification

When VHOST_USER_F_PROTOCOL_FEATURES is not negotiated,
there is no need for vhost_user_set_vring_kick() to
notify the application of vring enabled, as
vhost_user_msg_handler() also notifies the application.

This patch is to remove unnecessary vring_state_changed() call.

Fixes: d0fcc38f5fa4 ("vhost: improve device readiness notifications")
Cc: stable@dpdk.org
Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Tested-by: Yinan Wang <yinan.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/vhost/vhost_user.c