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
/
plugins
/
dpdk
/
device
/
dpdk_priv.h
diff --git
a/src/plugins/dpdk/device/dpdk_priv.h
b/src/plugins/dpdk/device/dpdk_priv.h
index
e5db674
..
b44cd49
100644
(file)
--- a/
src/plugins/dpdk/device/dpdk_priv.h
+++ b/
src/plugins/dpdk/device/dpdk_priv.h
@@
-97,7
+97,7
@@
dpdk_update_counters (dpdk_device_t * xd, f64 now)
return;
xd->time_last_stats_update = now ? now : xd->time_last_stats_update;
return;
xd->time_last_stats_update = now ? now : xd->time_last_stats_update;
- clib_memcpy (&xd->last_stats, &xd->stats, sizeof (xd->last_stats));
+ clib_memcpy
_fast
(&xd->last_stats, &xd->stats, sizeof (xd->last_stats));
rte_eth_stats_get (xd->port_id, &xd->stats);
/* maybe bump interface rx no buffer counter */
rte_eth_stats_get (xd->port_id, &xd->stats);
/* maybe bump interface rx no buffer counter */