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
/
unix
/
pcap.h
diff --git
a/src/vnet/unix/pcap.h
b/src/vnet/unix/pcap.h
index
2c174fb
..
0706aac
100644
(file)
--- a/
src/vnet/unix/pcap.h
+++ b/
src/vnet/unix/pcap.h
@@
-221,7
+221,7
@@
pcap_add_buffer (pcap_main_t * pm,
while (1)
{
u32 copy_length = clib_min ((u32) n_left, b->current_length);
while (1)
{
u32 copy_length = clib_min ((u32) n_left, b->current_length);
- clib_memcpy (d, b->data + b->current_data, copy_length);
+ clib_memcpy
_fast
(d, b->data + b->current_data, copy_length);
n_left -= b->current_length;
if (n_left <= 0)
break;
n_left -= b->current_length;
if (n_left <= 0)
break;