acl: add API call for setting the toggle to select between linear and bihash-based...
[vpp.git] / src / vppinfra / fifo.c
index e3b7b41..52d65ae 100644 (file)
@@ -76,7 +76,7 @@
    fifo_free (f) frees fifo.
 */
 
-void *
+__clib_export void *
 _clib_fifo_resize (void *v_old, uword n_new_elts, uword elt_bytes)
 {
   void *v_new, *end, *head;
@@ -112,11 +112,11 @@ _clib_fifo_resize (void *v_old, uword n_new_elts, uword elt_bytes)
       if (head + n_copy_bytes >= end)
        {
          uword n = end - head;
-         clib_memcpy (v_new, head, n);
-         clib_memcpy (v_new + n, v_old, n_copy_bytes - n);
+         clib_memcpy_fast (v_new, head, n);
+         clib_memcpy_fast (v_new + n, v_old, n_copy_bytes - n);
        }
       else
-       clib_memcpy (v_new, head, n_copy_bytes);
+       clib_memcpy_fast (v_new, head, n_copy_bytes);
     }
 
   /* Zero empty space. */