net/vhost: fix redundant queue state event
authorNoa Ezra <noae@mellanox.com>
Thu, 20 Jun 2019 06:33:03 +0000 (06:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:57 +0000 (15:00 +0200)
commitf2f0577eff3d13e761996c7390a244963b433bdc
tree6b0d324e970c11514e7d5479f806ae0d260777c0
parent4e0de8dac8531b82d4c328791a67f49eadfed5f0
net/vhost: fix redundant queue state event

In some situations, when a virtual machine is starting,
vring_state_changed can be called while there was no change in the
queue state. This fix makes sure that there was really a change in the
queue state before calling the callback for EVENT_QUEUE_STATE.

Fixes: ee584e9710b9 ("vhost: add driver on top of the library")
Cc: stable@dpdk.org
Signed-off-by: Noa Ezra <noae@mellanox.com>
Reviewed-by: Matan Azrad <matan@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/vhost/rte_eth_vhost.c