aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/marvell
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-01-18 20:03:41 +0100
committerFlorin Coras <florin.coras@gmail.com>2019-01-18 23:18:00 +0000
commit64d557cd6723cc3a7ae3a0a68a52e220f8f2c7f1 (patch)
tree648b6990d16da26d0d8ed97b4c16c7b6d8fa0fb1 /src/plugins/marvell
parent847d52882580378a5180e3d05a32249eef6da02e (diff)
Add vlib_buffer_copy_indices inline function
This reverts commit 1e59f9ddbdda14591967e1d66eab8623f9ba58e4. Change-Id: Iae1d372b887e170d28cac2fe4c61325ee5a5894a Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/marvell')
-rw-r--r--src/plugins/marvell/pp2/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/marvell/pp2/output.c b/src/plugins/marvell/pp2/output.c
index dbd106a5930..911b2f55a17 100644
--- a/src/plugins/marvell/pp2/output.c
+++ b/src/plugins/marvell/pp2/output.c
@@ -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));