From: Mohsin Kazmi Date: Thu, 10 Dec 2020 10:22:34 +0000 (+0000) Subject: virtio: use vpp clib_memset instead glibc memset X-Git-Tag: v21.10-rc0~578 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=8f010843c57a258aa41880f3d49f3952bc2223f9;p=vpp.git virtio: use vpp clib_memset instead glibc memset Type: improvement Signed-off-by: Mohsin Kazmi Change-Id: Ib3cefe5d27286c4853eb0c0e1803a94787a62c97 --- diff --git a/src/vnet/devices/virtio/node.c b/src/vnet/devices/virtio/node.c index 4a2e305a22e..be2405bb3b9 100644 --- a/src/vnet/devices/virtio/node.c +++ b/src/vnet/devices/virtio/node.c @@ -122,7 +122,7 @@ more: * initialized. */ b->current_data = -hdr_sz; - memset (vlib_buffer_get_current (b), 0, hdr_sz); + clib_memset (vlib_buffer_get_current (b), 0, hdr_sz); d->addr = ((type == VIRTIO_IF_TYPE_PCI) ? vlib_buffer_get_current_pa (vm, b) : @@ -188,7 +188,7 @@ more: * initialized. */ b->current_data = -hdr_sz; - memset (vlib_buffer_get_current (b), 0, hdr_sz); + clib_memset (vlib_buffer_get_current (b), 0, hdr_sz); d->addr = ((type == VIRTIO_IF_TYPE_PCI) ? vlib_buffer_get_current_pa (vm, b) :