aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-12-10 10:22:34 +0000
committerBeno�t Ganne <bganne@cisco.com>2021-02-08 16:48:18 +0000
commit8f010843c57a258aa41880f3d49f3952bc2223f9 (patch)
tree0261f758d9d9cf4478873c9e695a257c403e6d78
parentd8b7decc1d6e7b0e16b4e7558ea37683c4e8db8f (diff)
virtio: use vpp clib_memset instead glibc memset
Type: improvement Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: Ib3cefe5d27286c4853eb0c0e1803a94787a62c97
-rw-r--r--src/vnet/devices/virtio/node.c4
1 files changed, 2 insertions, 2 deletions
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) :