aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2016-12-08 07:58:47 +0000
committerPierre Pfister <ppfister@cisco.com>2016-12-08 07:58:47 +0000
commit14ac8010ef9f5e401263dbb60e90b8c71d871c52 (patch)
tree57f2a584bd3ac0a7162a6ebebf1ad86e1caf088c
parent4183d6d763326e79c67a4f7db61390d6654ea6c7 (diff)
vhost: fix coverity warning
Change-Id: Ifb9f8d2528142ad9f11a2b6d5ac10ff9639dd5d6 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
-rw-r--r--vnet/vnet/devices/virtio/vhost-user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/devices/virtio/vhost-user.c b/vnet/vnet/devices/virtio/vhost-user.c
index 6741e932131..bde8106c501 100644
--- a/vnet/vnet/devices/virtio/vhost-user.c
+++ b/vnet/vnet/devices/virtio/vhost-user.c
@@ -2155,7 +2155,7 @@ retry:
buffer_map_addr += cpy->len;
desc_len += cpy->len;
- CLIB_PREFETCH (&rxvq->desc, sizeof (&rxvq->desc), LOAD);
+ CLIB_PREFETCH (&rxvq->desc, CLIB_CACHE_LINE_BYTES, LOAD);
}
// Check if vlib buffer has more data. If not, get more or break.