vhost: fix coverity warning 62/4162/1
authorPierre Pfister <ppfister@cisco.com>
Thu, 8 Dec 2016 07:58:47 +0000 (07:58 +0000)
committerPierre Pfister <ppfister@cisco.com>
Thu, 8 Dec 2016 07:58:47 +0000 (07:58 +0000)
Change-Id: Ifb9f8d2528142ad9f11a2b6d5ac10ff9639dd5d6
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
vnet/vnet/devices/virtio/vhost-user.c

index 6741e93..bde8106 100644 (file)
@@ -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.