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
committerDave Wallace <dwallacelf@gmail.com>2020-08-12 15:24:14 +0000
commita4200a6824f8867df4f24db7723d78769f68914c (patch)
tree8376230e93363d2f5cf2ed13cfba295734d8a4a3 /src/vnet/fib/fib_path.c
parent7e8c693f7dd34f6ebe882cf2d667178647413fe4 (diff)
fib: leverage well-optimized clib_memcpy
Type: fix Change-Id: I684910837ca4d9c8a07262459158bbb0423a33af Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com> (cherry picked from commit d3d7ef5ec828ec895c6f90090118782e497b9084)
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 60ba92bf6cc..4af020ba302 100644
--- a/src/vnet/fib/fib_path.c
+++ b/src/vnet/fib/fib_path.c
@@ -1474,7 +1474,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);