From 14ac8010ef9f5e401263dbb60e90b8c71d871c52 Mon Sep 17 00:00:00 2001 From: Pierre Pfister Date: Thu, 8 Dec 2016 07:58:47 +0000 Subject: [PATCH] vhost: fix coverity warning Change-Id: Ifb9f8d2528142ad9f11a2b6d5ac10ff9639dd5d6 Signed-off-by: Pierre Pfister --- vnet/vnet/devices/virtio/vhost-user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.16.6