summaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-11-16 08:04:58 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-17 10:06:45 +0000
commit6b9c6df746f3d007b3021044b67a3fc1462d1b35 (patch)
treeb99363286d0ec51c160e11927a5a3356de231abf /vlib
parent94ea8b7ff3a429fd08c8316873497f35967ae635 (diff)
Fix 4 typos
As given, the macro was ignoring its bi0...bi3 arguments, and would only work if the arguments happened to be given as pi0..pi3 Change-Id: I5a8b163fcfc6b8197534d474fcd952b2e8b2694b Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/buffer_node.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/vlib/vlib/buffer_node.h b/vlib/vlib/buffer_node.h
index 0cf5f86beea..8a779049625 100644
--- a/vlib/vlib/buffer_node.h
+++ b/vlib/vlib/buffer_node.h
@@ -146,42 +146,42 @@ do { \
to_next -= 4; \
n_left_to_next += 4; \
\
- /* If pi0 belongs to "next", send it there */ \
+ /* If bi0 belongs to "next", send it there */ \
if (next_index == next0) \
{ \
- to_next[0] = pi0; \
+ to_next[0] = bi0; \
to_next++; \
n_left_to_next --; \
} \
else /* send it where it needs to go */ \
- vlib_set_next_frame_buffer (vm, node, next0, pi0); \
+ vlib_set_next_frame_buffer (vm, node, next0, bi0); \
\
if (next_index == next1) \
{ \
- to_next[0] = pi1; \
+ to_next[0] = bi1; \
to_next++; \
n_left_to_next --; \
} \
else \
- vlib_set_next_frame_buffer (vm, node, next1, pi1); \
+ vlib_set_next_frame_buffer (vm, node, next1, bi1); \
\
if (next_index == next2) \
{ \
- to_next[0] = pi2; \
+ to_next[0] = bi2; \
to_next++; \
n_left_to_next --; \
} \
else \
- vlib_set_next_frame_buffer (vm, node, next2, pi2); \
+ vlib_set_next_frame_buffer (vm, node, next2, bi2); \
\
if (next_index == next3) \
{ \
- to_next[0] = pi3; \
+ to_next[0] = bi3; \
to_next++; \
n_left_to_next --; \
} \
else \
- vlib_set_next_frame_buffer (vm, node, next3, pi3); \
+ vlib_set_next_frame_buffer (vm, node, next3, bi3); \
\
/* Change speculation: last 2 packets went to the same node */ \
if (next2 == next3) \