Add vlib_buffer_copy_indices inline function
This reverts commit 1e59f9ddbdda14591967e1d66eab8623f9ba58e4. Change-Id: Iae1d372b887e170d28cac2fe4c61325ee5a5894a Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
847d528825
commit
64d557cd67
@@ -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));
|
||||
|
Reference in New Issue
Block a user