Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove c-11 memcpy checks from perf-critical code
[vpp.git]
/
src
/
vnet
/
dpo
/
load_balance.c
diff --git
a/src/vnet/dpo/load_balance.c
b/src/vnet/dpo/load_balance.c
index
1abfab1
..
939e25c
100644
(file)
--- a/
src/vnet/dpo/load_balance.c
+++ b/
src/vnet/dpo/load_balance.c
@@
-383,7
+383,7
@@
ip_multipath_normalize_next_hops (const load_balance_path_t * raw_next_hops,
}
else
{
}
else
{
- clib_memcpy (nhs, raw_next_hops, n_nhs * sizeof (raw_next_hops[0]));
+ clib_memcpy
_fast
(nhs, raw_next_hops, n_nhs * sizeof (raw_next_hops[0]));
qsort (nhs, n_nhs, sizeof (nhs[0]), (void *) next_hop_sort_by_weight);
}
qsort (nhs, n_nhs, sizeof (nhs[0]), (void *) next_hop_sort_by_weight);
}