X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp%2Foam%2Foam.c;h=8cee64b9628d40df3e58bf6cfca3d8cc816d7fa6;hb=f34597f;hp=ef061207544889b75080f56fefce703f9bade4ab;hpb=597d3c4121b4dd557328c11debb42927a45d52fb;p=vpp.git diff --git a/src/vpp/oam/oam.c b/src/vpp/oam/oam.c index ef061207544..8cee64b9628 100644 --- a/src/vpp/oam/oam.c +++ b/src/vpp/oam/oam.c @@ -26,10 +26,10 @@ init_oam_packet_template (oam_main_t * om, oam_target_t * t) ip_csum_t sum; u16 csum; - vec_validate_aligned (t->template, 0, CLIB_CACHE_LINE_BYTES); + vec_validate (t->template, 0); h = t->template; - memset (h, 0, sizeof (*h)); + clib_memset (h, 0, sizeof (*h)); h->ip4.src_address.as_u32 = t->src_address.as_u32; h->ip4.dst_address.as_u32 = t->dst_address.as_u32; @@ -83,7 +83,7 @@ vpe_oam_add_del_target (ip4_address_t * src_address, return VNET_API_ERROR_INVALID_REGISTRATION; /* already there... */ pool_get (om->targets, t); - memset (t, 0, sizeof (*t)); + clib_memset (t, 0, sizeof (*t)); t->src_address.as_u32 = src_address->as_u32; t->dst_address.as_u32 = dst_address->as_u32; t->fib_id = fib_id;