X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fl2%2Fl2_rw.c;h=5b0034ca43e6519ad6f54a516423a763e7156c0c;hb=4d5b917;hp=fec047740568853c1a226efd19c0d71c061ed853;hpb=beb0b2e346c63e21ffe892ae0e04b67bb10fba5e;p=vpp.git diff --git a/src/vnet/l2/l2_rw.c b/src/vnet/l2/l2_rw.c index fec04774056..5b0034ca43e 100644 --- a/src/vnet/l2/l2_rw.c +++ b/src/vnet/l2/l2_rw.c @@ -22,7 +22,7 @@ * @brief Layer 2 Rewrite. * * Layer 2-Rewrite node uses classify tables to match packets. Then, using - * the provisioned mask and value, modfies the packet header. + * the provisioned mask and value, modifies the packet header. */ @@ -381,9 +381,9 @@ l2_rw_mod_entry (u32 * index, skip -= e->skip_n_vectors * sizeof (u32x4); e->rewrite_n_vectors = (skip + len - 1) / sizeof (u32x4) + 1; vec_alloc_aligned (e->mask, e->rewrite_n_vectors, sizeof (u32x4)); - memset (e->mask, 0, e->rewrite_n_vectors * sizeof (u32x4)); + clib_memset (e->mask, 0, e->rewrite_n_vectors * sizeof (u32x4)); vec_alloc_aligned (e->value, e->rewrite_n_vectors, sizeof (u32x4)); - memset (e->value, 0, e->rewrite_n_vectors * sizeof (u32x4)); + clib_memset (e->value, 0, e->rewrite_n_vectors * sizeof (u32x4)); clib_memcpy (((u8 *) e->value) + skip, value, len); clib_memcpy (((u8 *) e->mask) + skip, mask, len); @@ -439,7 +439,7 @@ l2_rw_entry_cli_fn (vlib_main_t * vm, /*? * Layer 2-Rewrite node uses classify tables to match packets. Then, using - * the provisioned mask and value, modfies the packet header. + * the provisioned mask and value, modifies the packet header. * * @cliexpar * @todo This is incomplete. This needs a detailed description and a @@ -511,7 +511,7 @@ l2_rw_interface_cli_fn (vlib_main_t * vm, /*? * Layer 2-Rewrite node uses classify tables to match packets. Then, using - * the provisioned mask and value, modfies the packet header. + * the provisioned mask and value, modifies the packet header. * * @cliexpar * @todo This is incomplete. This needs a detailed description and a @@ -546,7 +546,7 @@ l2_rw_show_interfaces_cli_fn (vlib_main_t * vm, /*? * Layer 2-Rewrite node uses classify tables to match packets. Then, using - * the provisioned mask and value, modfies the packet header. + * the provisioned mask and value, modifies the packet header. * * @cliexpar * @todo This is incomplete. This needs a detailed description and a @@ -580,7 +580,7 @@ l2_rw_show_entries_cli_fn (vlib_main_t * vm, /*? * Layer 2-Rewrite node uses classify tables to match packets. Then, using - * the provisioned mask and value, modfies the packet header. + * the provisioned mask and value, modifies the packet header. * * @cliexpar * @todo This is incomplete. This needs a detailed description and a