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
/
nsim
/
nsim_input.c
diff --git
a/src/plugins/nsim/nsim_input.c
b/src/plugins/nsim/nsim_input.c
index
50dbcb9
..
66bd8d1
100644
(file)
--- a/
src/plugins/nsim/nsim_input.c
+++ b/
src/plugins/nsim/nsim_input.c
@@
-42,8
+42,6
@@
format_nsim_tx_trace (u8 * s, va_list * args)
}
#endif /* CLIB_MARCH_VARIANT */
}
#endif /* CLIB_MARCH_VARIANT */
-vlib_node_registration_t nsim_node;
-
#define foreach_nsim_tx_error \
_(TX, "Packets transmitted") \
_(DROPPED, "No buffer drops")
#define foreach_nsim_tx_error \
_(TX, "Packets transmitted") \
_(DROPPED, "No buffer drops")
@@
-156,7
+154,7
@@
nsim_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
b0->current_length = ep->current_length;
/* Copy data from the ring */
b0->current_length = ep->current_length;
/* Copy data from the ring */
- clib_memcpy (b0->data, ep->data, ep->current_length);
+ clib_memcpy
_fast
(b0->data, ep->data, ep->current_length);
b0->flags |= VLIB_BUFFER_TOTAL_LENGTH_VALID;
vnet_buffer (b0)->sw_if_index[VLIB_TX] = ep->tx_sw_if_index;
vnet_buffer (b0)->sw_if_index[VLIB_RX] =
b0->flags |= VLIB_BUFFER_TOTAL_LENGTH_VALID;
vnet_buffer (b0)->sw_if_index[VLIB_TX] = ep->tx_sw_if_index;
vnet_buffer (b0)->sw_if_index[VLIB_RX] =