Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ping: fix buffer allocator error handling
[vpp.git]
/
src
/
plugins
/
ping
/
ping.c
diff --git
a/src/plugins/ping/ping.c
b/src/plugins/ping/ping.c
index
7045648
..
f56f44f
100755
(executable)
--- a/
src/plugins/ping/ping.c
+++ b/
src/plugins/ping/ping.c
@@
-933,6
+933,8
@@
ip46_enqueue_packet (vlib_main_t * vm, vlib_buffer_t * b0, u32 burst,
* we did not enqueue it here yet.
*/
ship_and_ret:
* we did not enqueue it here yet.
*/
ship_and_ret:
+ ASSERT (n_to_send <= f->n_vectors);
+ f->n_vectors -= n_to_send;
n_sent += f->n_vectors;
vlib_put_frame_to_node (vm, lookup_node_index, f);
return n_sent;
n_sent += f->n_vectors;
vlib_put_frame_to_node (vm, lookup_node_index, f);
return n_sent;