Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
test_fib.py: Remove empty methods
[vpp.git]
/
src
/
vlib
/
node.c
diff --git
a/src/vlib/node.c
b/src/vlib/node.c
index
ed474eb
..
88185ce
100644
(file)
--- a/
src/vlib/node.c
+++ b/
src/vlib/node.c
@@
-290,7
+290,7
@@
node_elog_init (vlib_main_t * vm, uword ni)
{
elog_event_type_t t;
{
elog_event_type_t t;
- memset (&t, 0, sizeof (t));
+
clib_
memset (&t, 0, sizeof (t));
/* 2 event types for this node: one when node function is called.
One when it returns. */
/* 2 event types for this node: one when node function is called.
One when it returns. */
@@
-347,7
+347,7
@@
register_node (vlib_main_t * vm, vlib_node_registration_t * r)
ASSERT (r->function != 0);
n = clib_mem_alloc_no_fail (sizeof (n[0]));
ASSERT (r->function != 0);
n = clib_mem_alloc_no_fail (sizeof (n[0]));
- memset (n, 0, sizeof (n[0]));
+
clib_
memset (n, 0, sizeof (n[0]));
n->index = vec_len (nm->nodes);
n->node_fn_registrations = r->node_fn_registrations;
n->index = vec_len (nm->nodes);
n->node_fn_registrations = r->node_fn_registrations;
@@
-451,7
+451,7
@@
register_node (vlib_main_t * vm, vlib_node_registration_t * r)
clib_panic ("failed to allocate process stack (%d bytes)",
1 << log2_n_stack_bytes);
clib_panic ("failed to allocate process stack (%d bytes)",
1 << log2_n_stack_bytes);
- memset (p, 0, sizeof (p[0]));
+
clib_
memset (p, 0, sizeof (p[0]));
p->log2_n_stack_bytes = log2_n_stack_bytes;
/* Process node's runtime index is really index into process
p->log2_n_stack_bytes = log2_n_stack_bytes;
/* Process node's runtime index is really index into process
@@
-529,7
+529,7
@@
null_node_fn (vlib_main_t * vm,
u16 n_vectors = frame->n_vectors;
vlib_node_increment_counter (vm, node->node_index, 0, n_vectors);
u16 n_vectors = frame->n_vectors;
vlib_node_increment_counter (vm, node->node_index, 0, n_vectors);
- vlib_buffer_free (vm, vlib_frame_args (frame), n_vectors);
+ vlib_buffer_free (vm, vlib_frame_
vector_
args (frame), n_vectors);
vlib_frame_free (vm, node, frame);
return n_vectors;
vlib_frame_free (vm, node, frame);
return n_vectors;