virtio: use vpp clib_memset instead glibc memset 71/30371/3
authorMohsin Kazmi <sykazmi@cisco.com>
Thu, 10 Dec 2020 10:22:34 +0000 (10:22 +0000)
committerBeno�t Ganne <bganne@cisco.com>
Mon, 8 Feb 2021 16:48:18 +0000 (16:48 +0000)
Type: improvement

Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: Ib3cefe5d27286c4853eb0c0e1803a94787a62c97

src/vnet/devices/virtio/node.c

index 4a2e305..be2405b 100644 (file)
@@ -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) :