Remove c-11 memcpy checks from perf-critical code
[vpp.git] / src / vnet / vxlan-gpe / vxlan_gpe.c
index c14cc73..a7eaba6 100644 (file)
@@ -543,14 +543,14 @@ int vnet_vxlan_gpe_add_del_tunnel
       if (!is_ip6)
        {
          key4_copy = clib_mem_alloc (sizeof (*key4_copy));
-         clib_memcpy (key4_copy, &key4, sizeof (*key4_copy));
+         clib_memcpy_fast (key4_copy, &key4, sizeof (*key4_copy));
          hash_set_mem (ngm->vxlan4_gpe_tunnel_by_key, key4_copy,
                        t - ngm->tunnels);
        }
       else
        {
          key6_copy = clib_mem_alloc (sizeof (*key6_copy));
-         clib_memcpy (key6_copy, &key6, sizeof (*key6_copy));
+         clib_memcpy_fast (key6_copy, &key6, sizeof (*key6_copy));
          hash_set_mem (ngm->vxlan6_gpe_tunnel_by_key, key6_copy,
                        t - ngm->tunnels);
        }