vhost: fix missing increment of log cache count
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 15 Jun 2018 13:48:46 +0000 (15:48 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commite11411b52ae1e778fecaf0b896ff1f6aa4da7c99
tree85684e74d426d6a33607ac3c8b22c27cd82fbbe2
parentebf2ed7208babc8c4a6b06b336e78e3cc0faae63
vhost: fix missing increment of log cache count

The log_cache_nb_elem was never incremented, resulting
in all dirty pages to be missed during live migration.

Fixes: c16915b87109 ("vhost: improve dirty pages logging performance")
Cc: stable@dpdk.org
Reported-by: Peng He <xnhp0320@icloud.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/vhost.h