summaryrefslogtreecommitdiffstats
path: root/src/vnet/fib/fib_path.c
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2020-01-09 04:20:57 -0500
committerNeale Ranns <nranns@cisco.com>2020-01-09 21:38:40 +0000
commitd3d7ef5ec828ec895c6f90090118782e497b9084 (patch)
tree18167876bc8a6fc6fc4efe8c8bc876341fc0c51e /src/vnet/fib/fib_path.c
parent87b0c892947006cbfa80fd2af15e8edb4029f327 (diff)
fib: leverage well-optimized clib_memcpy
Type: fix Change-Id: I684910837ca4d9c8a07262459158bbb0423a33af Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'src/vnet/fib/fib_path.c')
-rw-r--r--src/vnet/fib/fib_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/fib/fib_path.c b/src/vnet/fib/fib_path.c
index ef5d58c9e2b..c8a2a09cbff 100644
--- a/src/vnet/fib/fib_path.c
+++ b/src/vnet/fib/fib_path.c
@@ -1488,7 +1488,7 @@ fib_path_copy (fib_node_index_t path_index,
orig_path = fib_path_get(path_index);
ASSERT(NULL != orig_path);
- memcpy(path, orig_path, sizeof(*path));
+ clib_memcpy(path, orig_path, sizeof(*path));
FIB_PATH_DBG(path, "create-copy:%d", path_index);