From: Pierre Pfister Date: Thu, 8 Dec 2016 07:58:47 +0000 (+0000) Subject: vhost: fix coverity warning X-Git-Tag: v17.01-rc1~79 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=14ac8010ef9f5e401263dbb60e90b8c71d871c52;p=vpp.git vhost: fix coverity warning Change-Id: Ifb9f8d2528142ad9f11a2b6d5ac10ff9639dd5d6 Signed-off-by: Pierre Pfister --- 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.