Blame SOURCES/0001-vhost-fix-missing-increment-of-log-cache-count.patch

702481
From ed06ea24dc419a55fd5e9a1601f1144434360eda Mon Sep 17 00:00:00 2001
702481
From: Maxime Coquelin <maxime.coquelin@redhat.com>
702481
Date: Fri, 15 Jun 2018 15:48:46 +0200
702481
Subject: [PATCH] vhost: fix missing increment of log cache count
702481
702481
The log_cache_nb_elem was never incremented, resulting
702481
in all dirty pages to be missed during live migration.
702481
702481
Fixes: c16915b87109 ("vhost: improve dirty pages logging performance")
702481
Cc: stable@dpdk.org
702481
702481
Reported-by: Peng He <xnhp0320@icloud.com>
702481
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
702481
Acked-by: Ilya Maximets <i.maximets@samsung.com>
702481
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
702481
(cherry picked from commit 511b413bbcbd711dcf582485a72213fa90595cbe)
702481
---
702481
 lib/librte_vhost/vhost.h | 1 +
702481
 1 file changed, 1 insertion(+)
702481
702481
diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h
702481
index e0ab65e0c..429b974db 100644
702481
--- a/lib/librte_vhost/vhost.h
702481
+++ b/lib/librte_vhost/vhost.h
702481
@@ -387,6 +387,7 @@ vhost_log_cache_page(struct virtio_net *dev, struct vhost_virtqueue *vq,
702481
 
702481
 	vq->log_cache[i].offset = offset;
702481
 	vq->log_cache[i].val = (1UL << bit_nr);
702481
+	vq->log_cache_nb_elem++;
702481
 }
702481
 
702481
 static __rte_always_inline void
702481
-- 
702481
2.17.1
702481