Add vlib_buffer_copy_indices inline function
[vpp.git] / src / plugins / marvell / pp2 / output.c
index dbd106a..911b2f5 100644 (file)
@@ -101,7 +101,7 @@ mrvl_pp2_interface_tx (vlib_main_t * vm,
       buffers = vlib_frame_vector_args (frame);
       u16 n_copy = clib_min (outq->size - slot, n_sent);
 
-      clib_memcpy_fast (outq->buffers + slot, buffers, n_copy * sizeof (u32));
+      vlib_buffer_copy_indices (outq->buffers + slot, buffers, n_copy);
       if (PREDICT_FALSE (n_copy < n_sent))
        clib_memcpy_fast (outq->buffers, buffers + n_copy,
                          (n_sent - n_copy) * sizeof (u32));